[Bf-blender-cvs] [ac26a61] master: Attempt to fix BGE build on windows.
Bastien Montagne
noreply at git.blender.org
Thu Feb 26 11:43:37 CET 2015
Commit: ac26a6138552f90eb673a2fb5c081bdeb93f71ba
Author: Bastien Montagne
Date: Thu Feb 26 11:42:22 2015 +0100
Branches: master
https://developer.blender.org/rBac26a6138552f90eb673a2fb5c081bdeb93f71ba
Attempt to fix BGE build on windows.
Caused by rBb5b359b48f7f35a79b3eec, better to try a full build before pushing that type of commit. :/
===================================================================
M source/gameengine/GamePlayer/ghost/GPG_Application.cpp
===================================================================
diff --git a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
index 817c04a..204b09a 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);
More information about the Bf-blender-cvs
mailing list