]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/glcanvas/samples/isosurf/isosurf.cpp
Added missing files to filelist.txt and regenerated makefiles.
[wxWidgets.git] / utils / glcanvas / samples / isosurf / isosurf.cpp
index fe456fa33da98b31c625ed7f1ff8bcd99e6676b8..bc5615f81f244b46fb78bfc10d56cbfbc7249825 100644 (file)
@@ -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);