mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-12-14 06:18:50 +00:00
[SDL] X11+GL: Allow Visual override for GL windows.
SDL provides an SDL_VIDEO_X11_VISUALID environment variable that lets you override window visuals, but it wasn't being checked for OpenGL windows. CR: Sam.
This commit is contained in:
parent
5081b5d3da
commit
a9166450f4
@ -365,7 +365,8 @@ X11_CreateWindow(_THIS, SDL_Window * window)
|
||||
Uint32 fevent = 0;
|
||||
|
||||
#if SDL_VIDEO_OPENGL_GLX || SDL_VIDEO_OPENGL_EGL
|
||||
if (window->flags & SDL_WINDOW_OPENGL) {
|
||||
if ((window->flags & SDL_WINDOW_OPENGL) &&
|
||||
!SDL_getenv("SDL_VIDEO_X11_VISUALID")) {
|
||||
XVisualInfo *vinfo = NULL;
|
||||
|
||||
#if SDL_VIDEO_OPENGL_EGL
|
||||
|
Loading…
Reference in New Issue
Block a user