diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-02-26 13:42:22 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-02-26 13:42:22 +0300 |
commit | ac26a6138552f90eb673a2fb5c081bdeb93f71ba (patch) | |
tree | fd3ea266f11e7dc4028f53c6cbfe551033d39ae8 /source | |
parent | 98e3694c39f3dde7a9d01b82ea627e55fa5eda8f (diff) |
Attempt to fix BGE build on windows.
Caused by rBb5b359b48f7f35a79b3eec, better to try a full build before pushing that type of commit. :/
Diffstat (limited to 'source')
-rw-r--r-- | source/gameengine/GamePlayer/ghost/GPG_Application.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp index 817c04a0044..204b09a7502 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp @@ -250,9 +250,15 @@ bool GPG_Application::startScreenSaverPreview( int windowWidth = rc.right - rc.left; int windowHeight = rc.bottom - rc.top; STR_String title = ""; - + GHOST_GLSettings glSettings = {0}; + + if (stereoVisual) { + glSettings.flags |= GHOST_glStereoVisual; + } + glSettings.numOfAASamples = numOfAASamples; + m_mainWindow = fSystem->createWindow(title, 0, 0, windowWidth, windowHeight, GHOST_kWindowStateMinimized, - GHOST_kDrawingContextTypeOpenGL, stereoVisual, samples); + GHOST_kDrawingContextTypeOpenGL, glSettings); if (!m_mainWindow) { printf("error: could not create main window\n"); exit(-1); |