mirror of
https://github.com/glest/glest-source.git
synced 2025-08-23 08:22:50 +02:00
- try to fix wx 2.8
This commit is contained in:
Submodule data/glest_game updated: c256b69196...a1e6be2182
@@ -307,7 +307,7 @@ MainWindow::MainWindow( std::pair<string,vector<string> > unitToLoad,
|
||||
#if wxCHECK_VERSION(2, 9, 1)
|
||||
|
||||
#else
|
||||
glCanvas->SetCurrent();
|
||||
if(glCanvas) glCanvas->SetCurrent();
|
||||
#endif
|
||||
|
||||
unitPath = unitToLoad;
|
||||
@@ -479,6 +479,13 @@ void MainWindow::setupStartupSettings() {
|
||||
if(glCanvas == NULL) {
|
||||
int args[] = { WX_GL_RGBA, WX_GL_DOUBLEBUFFER, WX_GL_MIN_ALPHA, 8 }; // to prevent flicker
|
||||
glCanvas = new GlCanvas(this, args);
|
||||
|
||||
#if wxCHECK_VERSION(2, 9, 1)
|
||||
|
||||
#else
|
||||
glCanvas->SetCurrent();
|
||||
#endif
|
||||
|
||||
}
|
||||
glCanvas->setCurrentGLContext();
|
||||
//printf("In setupStartupSettings #2\n");
|
||||
|
Reference in New Issue
Block a user