GLX_DOUBLEBUFFER, None };
#endif
- if(!doubleBuffer
-#ifdef __WXGTK__ // JACS
- || !wxGLCanvas::HaveVisual(gl_attrib)
-#endif
- )
+ if(!doubleBuffer)
{
printf("don't have double buffer, disabling\n");
#ifdef __WXGTK__
Destroy();
}
-bool MyFrame::OnClose(void)
-{
- return TRUE;
-}
-
-
/*
* TestGLCanvas implementation
*/
glDisable(GL_LIGHTING);
}
break;
+ default:
+ {
+ event.Skip();
+ return;
+ }
}
Refresh(FALSE);