mirror of https://github.com/libsdl-org/SDL.git
Allow OpenGL initialization on XB1 and XSX.
This commit is contained in:
parent
eb5ab22032
commit
33c0654d54
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue