From 3bf7b4ff31cb7b16f9c05c4d5ec9dc741687d9bd Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 28 Aug 2024 13:21:02 -0700 Subject: [PATCH] Fixed SDL_EGL_LoadLibrary() --- src/video/SDL_egl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index 23968945b9..7628e41ca1 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -505,9 +505,8 @@ static void SDL_EGL_GetVersion(SDL_VideoDevice *_this) bool SDL_EGL_LoadLibrary(SDL_VideoDevice *_this, const char *egl_path, NativeDisplayType native_display, EGLenum platform) { - int library_load_retcode = SDL_EGL_LoadLibraryOnly(_this, egl_path); - if (library_load_retcode != 0) { - return library_load_retcode; + if (!SDL_EGL_LoadLibraryOnly(_this, egl_path)) { + return false; } _this->egl_data->egl_display = EGL_NO_DISPLAY;