diff --git a/src/sdl/ogl_sdl.c b/src/sdl/ogl_sdl.c index 76e8dead6..1decb0f99 100644 --- a/src/sdl/ogl_sdl.c +++ b/src/sdl/ogl_sdl.c @@ -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