]> git.saurik.com Git - wxWidgets.git/commitdiff
use IsShownOnScreen() in OnSize() to ensure that the window is realized (important...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Apr 2007 23:09:46 +0000 (23:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Apr 2007 23:09:46 +0000 (23:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/opengl/cube/cube.cpp

index ac4ea822404d374727ad34aa3b88e7741c853a6f..411979b571040299f32c67cbb9e7c7ea29ebe31c 100644 (file)
@@ -304,7 +304,7 @@ void TestGLCanvas::OnSize(wxSizeEvent& event)
     // don't prevent default processing from taking place
     event.Skip();
 
-    if ( !IsShown() )
+    if ( !IsShownOnScreen() )
         return;
 
     // set GL viewport (not called by wxGLCanvas::OnSize on all platforms...)