From e559e76ed933e974d2c5aca5489b129a83fbe053 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 15 Apr 2007 15:23:05 +0000 Subject: [PATCH] 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 --- samples/opengl/cube/cube.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/opengl/cube/cube.cpp b/samples/opengl/cube/cube.cpp index 61f6494..ac4ea82 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; } -- 2.7.4