Skip to content

Commit

Permalink
Linux: Fix glewInit failing on Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
Mefiresu committed Jan 9, 2025
1 parent e81bde1 commit a27ad36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Engine/Rendering/GL/GLRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ void GLRenderer::Init() {
#ifdef USING_GLEW
glewExperimental = GL_TRUE;
GLenum res = glewInit();
if (res != GLEW_OK) {
if (res != GLEW_OK && res != GLEW_ERROR_NO_GLX_DISPLAY) {
Log::Print(Log::LOG_ERROR, "Could not create GLEW context: %s", glewGetErrorString(res));
exit(-1);
}
Expand Down

0 comments on commit a27ad36

Please sign in to comment.