explicitly check for x11 sdl videodriver
This commit is contained in:
1 parent
af470dc7b2
commit
7401ddca43
1 file changed
+4
-1
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user