X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e559e76ed933e974d2c5aca5489b129a83fbe053..c95e653ca42e6474c32d71e69a3fd8a2bc443fc4:/samples/opengl/cube/cube.cpp diff --git a/samples/opengl/cube/cube.cpp b/samples/opengl/cube/cube.cpp index ac4ea82240..411979b571 100644 --- a/samples/opengl/cube/cube.cpp +++ b/samples/opengl/cube/cube.cpp @@ -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...)