explicitly check for x11 sdl videodriver

This commit is contained in:
Alug committed 2025-03-06 11:21:50 +01:00
1 parent af470dc7b2
commit 7401ddca43
1 file changed
+4 -1
+4 -1
View File
@@ -190,7 +190,10 @@ boolean OglSdlSurface(INT32 w, INT32 h)
#if defined (__unix__)
#ifdef USE_FBO_OGL
if (supportFBO && strstr((const char*)gl_renderer, "NVIDIA"))
char videodriver[4] = {'S','D','L',0};
if (supportFBO && strstr((const char*)gl_renderer, "NVIDIA")
&& (*strncpy(videodriver, SDL_GetCurrentVideoDriver(), 4) != '\0')
&& (strncasecmp("x11",videodriver,4) == 0))
xwaylandcrap = true;
#endif
#endif