Thanks, that makes a lot more sense now. I'm running Linux on my development box, though, so wglShareLists won't work for me (since it's part of the microsoft-specific OGL API).
There appears to a special constructor that allows me to share a context from within the wxWindows containers. I added it to my texture window, but it doesn't appear to be working. Here is the modified constructor:
CTextureWindow::CTextureWindow(wxWindow *parent, wxGLContext *sharedContext, wxPoint pos, wxSize size, CScene *scene): wxGLCanvas(parent, sharedContext, -1, pos, size, 0, wxString(wxT("GLCanvas")), NULL, wxNullPalette){ this->scene = scene;}
And here is where I actually construct the two windows:
renderWindow = new CRenderWindow(this, renderPoint, renderSize, scene); wxDialog* dialog = new wxDialog(this, -1, wxT("Textures"), wxDefaultPosition, wxDefaultSize, wxRESIZE_BORDER|wxCAPTION, wxT("dialogBox")); textureWindow = new CTextureWindow(dialog, renderWindow->GetContext(), wxDefaultPosition, wxDefaultSize, scene);
Any ideas on why this doesn't seem to work either?