mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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:
parent
98e3694c39
commit
ac26a61385
1 changed files with 8 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue