Attempt to fix BGE build on windows.

Caused by rBb5b359b48f7f35a79b3eec, better to try a full build before pushing that type of commit. :/
This commit is contained in:
Bastien Montagne 2015-02-26 11:42:22 +01:00
parent 98e3694c39
commit ac26a61385

@ -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);