projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc52149
)
added back SetCurrent() call accidentally removed in one of recent commits
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Sun, 15 Apr 2007 15:23:05 +0000
(15:23 +0000)
committer
Vadim 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
patch
|
blob
|
blame
|
history
diff --git
a/samples/opengl/cube/cube.cpp
b/samples/opengl/cube/cube.cpp
index 61f6494835e8547a6173e542ef46255f9738554c..ac4ea822404d374727ad34aa3b88e7741c853a6f 100644
(file)
--- 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;
}