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
This commit is contained in:
@@ -146,6 +146,8 @@ TestGLContext& MyApp::GetContext(wxGLCanvas *canvas)
|
|||||||
{
|
{
|
||||||
if ( !m_glContext )
|
if ( !m_glContext )
|
||||||
m_glContext = new TestGLContext(canvas);
|
m_glContext = new TestGLContext(canvas);
|
||||||
|
else
|
||||||
|
m_glContext->SetCurrent(*canvas);
|
||||||
|
|
||||||
return *m_glContext;
|
return *m_glContext;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user