mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 01:05:59 +00:00
Fix error during glew loading under Wayland
Solution taken from Supertux: https://github.com/SuperTux/supertux/pull/808
This commit is contained in:
parent
ff14e8ca35
commit
14b7eadc45
@ -204,6 +204,11 @@ void OpenGLSdlGraphicsManager::createOrUpdateScreen() {
|
||||
|
||||
#ifdef USE_GLEW
|
||||
GLenum err = glewInit();
|
||||
#ifdef GLEW_ERROR_NO_GLX_DISPLAY
|
||||
if (err == GLEW_ERROR_NO_GLX_DISPLAY) {
|
||||
// Wayland: https://github.com/nigels-com/glew/issues/172
|
||||
} else
|
||||
#endif
|
||||
if (err != GLEW_OK) {
|
||||
warning("Error: %s", glewGetErrorString(err));
|
||||
g_system->quit();
|
||||
|
Loading…
x
Reference in New Issue
Block a user