Added return null to missing error case in window init
This commit is contained in:
parent
51f28d16ae
commit
3e1bdccf75
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue