From: Vadim Zeitlin Date: Sun, 15 Apr 2007 15:23:05 +0000 (+0000) Subject: added back SetCurrent() call accidentally removed in one of recent commits X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e559e76ed933e974d2c5aca5489b129a83fbe053?ds=sidebyside added back SetCurrent() call accidentally removed in one of recent commits git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/opengl/cube/cube.cpp b/samples/opengl/cube/cube.cpp index 61f6494835..ac4ea82240 100644 --- a/samples/opengl/cube/cube.cpp +++ b/samples/opengl/cube/cube.cpp @@ -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; }