mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 11:58:12 +00:00
Fixed SDL_EGL_LoadLibrary()
This commit is contained in:
@@ -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)
|
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 (!SDL_EGL_LoadLibraryOnly(_this, egl_path)) {
|
||||||
if (library_load_retcode != 0) {
|
return false;
|
||||||
return library_load_retcode;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_this->egl_data->egl_display = EGL_NO_DISPLAY;
|
_this->egl_data->egl_display = EGL_NO_DISPLAY;
|
||||||
|
Reference in New Issue
Block a user