X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06ad863606966ceee6e7eea537f8d427f0d891a9..e8ac7bf221aec78b2a420660db711eed2e771670:/utils/glcanvas/samples/isosurf/isosurf.cpp diff --git a/utils/glcanvas/samples/isosurf/isosurf.cpp b/utils/glcanvas/samples/isosurf/isosurf.cpp index fe456fa33d..bc5615f81f 100644 --- a/utils/glcanvas/samples/isosurf/isosurf.cpp +++ b/utils/glcanvas/samples/isosurf/isosurf.cpp @@ -254,11 +254,7 @@ bool MyApp::OnInit(void) 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__ @@ -298,12 +294,6 @@ void MyFrame::OnExit(wxCommandEvent& event) Destroy(); } -bool MyFrame::OnClose(void) -{ - return TRUE; -} - - /* * TestGLCanvas implementation */ @@ -385,6 +375,11 @@ void TestGLCanvas::OnChar(wxKeyEvent& event) glDisable(GL_LIGHTING); } break; + default: + { + event.Skip(); + return; + } } Refresh(FALSE);