mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-15 08:13:13 +00:00
Revert "wayland: Don't initialize OpenGL when the window flags didn't specify it"
This reverts commitf522c5380c. We don't want this change for SDL2, and we're doing further investigation for SDL3. Fixes https://github.com/libsdl-org/SDL/issues/9035 (cherry picked from commit120b8d4189)
This commit is contained in:
@@ -1994,6 +1994,13 @@ int Wayland_CreateWindow(_THIS, SDL_Window *window)
|
||||
c = _this->driverdata;
|
||||
window->driverdata = data;
|
||||
|
||||
if (!(window->flags & SDL_WINDOW_VULKAN)) {
|
||||
if (!(window->flags & SDL_WINDOW_OPENGL)) {
|
||||
SDL_GL_LoadLibrary(NULL);
|
||||
window->flags |= SDL_WINDOW_OPENGL;
|
||||
}
|
||||
}
|
||||
|
||||
if (window->x == SDL_WINDOWPOS_UNDEFINED) {
|
||||
window->x = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user