Allow OpenGL initialization on XB1 and XSX.

This commit is contained in:
Jean-Philip Desjardins 2025-02-03 19:02:31 -05:00 committed by Sam Lantinga
parent eb5ab22032
commit 33c0654d54
1 changed files with 2 additions and 0 deletions

View File

@ -842,6 +842,7 @@ bool WIN_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Properties
return WIN_SetError("SetPixelFormat()");
}
} else {
#endif // !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
if (!(window->flags & SDL_WINDOW_OPENGL)) {
return true;
}
@ -874,6 +875,7 @@ bool WIN_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Properties
#else
return SDL_SetError("Could not create GL window (WGL support not configured)");
#endif
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
}
#endif // !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)