diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp index 0adfd82d2..8dccd39cf 100644 --- a/src/engine/client/backend_sdl.cpp +++ b/src/engine/client/backend_sdl.cpp @@ -443,7 +443,9 @@ static bool BackendInitGlew(EBackendType BackendType, int &GlewMajor, int &GlewM #ifdef CONF_GLEW_HAS_CONTEXT_INIT if(GLEW_OK != glewContextInit()) #else - if(GLEW_OK != glewInit()) + GLenum InitResult = glewInit(); + const char *pVideoDriver = SDL_GetCurrentVideoDriver(); + if(GLEW_OK != InitResult && pVideoDriver && !str_comp(pVideoDriver, "wayland") && GLEW_ERROR_NO_GLX_DISPLAY != InitResult) #endif return false;