Allow OpenGL initialization on XB1 and XSX.

This commit is contained in:
Jean-Philip Desjardins authored and Sam Lantinga committed 2025-02-04 07:35:52 -08:00
1 parent eb5ab22032
commit 33c0654d54
1 file changed
+2
+2
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)