Allow OpenGL initialization on XB1 and XSX.
This commit is contained in:
committed by
Sam Lantinga
parent
eb5ab22032
commit
33c0654d54
@@ -842,6 +842,7 @@ bool WIN_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Properties
|
|||||||
return WIN_SetError("SetPixelFormat()");
|
return WIN_SetError("SetPixelFormat()");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
#endif // !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
||||||
if (!(window->flags & SDL_WINDOW_OPENGL)) {
|
if (!(window->flags & SDL_WINDOW_OPENGL)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -874,6 +875,7 @@ bool WIN_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Properties
|
|||||||
#else
|
#else
|
||||||
return SDL_SetError("Could not create GL window (WGL support not configured)");
|
return SDL_SetError("Could not create GL window (WGL support not configured)");
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
||||||
}
|
}
|
||||||
#endif // !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
#endif // !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user