SDL3: Fixed Cocoa_GL_CreateContext() not returning a context on success (#11181)

This commit is contained in:
Rusty Moyher 2024-10-12 16:01:21 -05:00 committed by GitHub
parent 94c8c170eb
commit 7556c44796
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ SDL_GLContext Cocoa_GL_CreateContext(SDL_VideoDevice *_this, SDL_Window *window)
_this->GL_SwapWindow = Cocoa_GLES_SwapWindow; _this->GL_SwapWindow = Cocoa_GLES_SwapWindow;
_this->GL_DestroyContext = Cocoa_GLES_DestroyContext; _this->GL_DestroyContext = Cocoa_GLES_DestroyContext;
if (Cocoa_GLES_LoadLibrary(_this, NULL) != 0) { if (!Cocoa_GLES_LoadLibrary(_this, NULL)) {
return NULL; return NULL;
} }
return Cocoa_GLES_CreateContext(_this, window); return Cocoa_GLES_CreateContext(_this, window);