Added return null to missing error case in window init

This commit is contained in:
Warwick 2025-11-28 13:03:54 +00:00
parent 51f28d16ae
commit 3e1bdccf75

View file

@ -42,6 +42,7 @@ wn_window *wn_window_init(Arena *arena) {
if (!SDL_GL_MakeCurrent(window->window, window->glcontext)) { if (!SDL_GL_MakeCurrent(window->window, window->glcontext)) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
"Couldn't make glcontext current: %s", SDL_GetError()); "Couldn't make glcontext current: %s", SDL_GetError());
return NULL;
} }
// hide and lock mouse // hide and lock mouse