fix the sample to work under X11 (where a context can't be made current before the window is realized)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -61,7 +61,10 @@ public:
|
||||
void OnKeyDown(wxKeyEvent& event);
|
||||
|
||||
private:
|
||||
// one-time OpenGL initialization
|
||||
// OpenGL calls can't be done until we're initialized
|
||||
bool IsInitialized() const { return m_gllist != 0; }
|
||||
|
||||
// one-time OpenGL initialization, only does something if !IsInitialized()
|
||||
void InitGL();
|
||||
|
||||
// render to window
|
||||
|
Reference in New Issue
Block a user