diff --git a/src/window.c b/src/window.c index a8a582e..b968862 100644 --- a/src/window.c +++ b/src/window.c @@ -42,6 +42,7 @@ wn_window *wn_window_init(Arena *arena) { if (!SDL_GL_MakeCurrent(window->window, window->glcontext)) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't make glcontext current: %s", SDL_GetError()); + return NULL; } // hide and lock mouse