]> git.saurik.com Git - wxWidgets.git/commitdiff
added back SetCurrent() call accidentally removed in one of recent commits
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Apr 2007 15:23:05 +0000 (15:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Apr 2007 15:23:05 +0000 (15:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/opengl/cube/cube.cpp

index 61f6494835e8547a6173e542ef46255f9738554c..ac4ea822404d374727ad34aa3b88e7741c853a6f 100644 (file)
@@ -146,6 +146,8 @@ TestGLContext& MyApp::GetContext(wxGLCanvas *canvas)
 {
     if ( !m_glContext )
         m_glContext = new TestGLContext(canvas);
+    else
+        m_glContext->SetCurrent(*canvas);
 
     return *m_glContext;
 }