Added error out if theres and issue with glew which on wayland there is

This commit is contained in:
Warwick 2025-11-28 19:41:49 +00:00
parent e1249ec669
commit 9842fee816

View file

@ -39,6 +39,7 @@ wn_window *wn_window_init(Arena *arena) {
if (glewError != GLEW_OK) { if (glewError != GLEW_OK) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Error initializing GLEW! %s", SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Error initializing GLEW! %s",
glewGetErrorString(glewError)); glewGetErrorString(glewError));
return NULL;
} }
if (!SDL_GL_MakeCurrent(window->window, window->glcontext)) { if (!SDL_GL_MakeCurrent(window->window, window->glcontext)) {