- Display* display = (Display*) m_window->GetXDisplay();
- glXSwapBuffers(display, (Window) m_window->GetXWindow());
+ Display* display = (Display*) wxGetDisplay();
+ glXSwapBuffers(display, (Window) m_window->GetClientWindow());
- Display* display = (Display*) m_window->GetXDisplay();
- glXMakeCurrent(display, (Window) m_window->GetXWindow(),
+ Display* display = (Display*) wxGetDisplay();
+ glXMakeCurrent(display, (Window) m_window->GetClientWindow(),
// Check for the presence of the GLX extension
if(!glXQueryExtension(display, NULL, NULL)) {
// Check for the presence of the GLX extension
if(!glXQueryExtension(display, NULL, NULL)) {
} else {
// By default, we use the visual of xwindow
// NI: is this really senseful ? opengl in e.g. color index mode ?
} else {
// By default, we use the visual of xwindow
// NI: is this really senseful ? opengl in e.g. color index mode ?
vi_templ.visualid = XVisualIDFromVisual(xwa.visual);
vi = XGetVisualInfo(display, VisualIDMask, &vi_templ, &n);
if(!vi) return false;
vi_templ.visualid = XVisualIDFromVisual(xwa.visual);
vi = XGetVisualInfo(display, VisualIDMask, &vi_templ, &n);
if(!vi) return false;