소스 검색

Fixed SDL_EGL_LoadLibrary()

Sam Lantinga 1 년 전
부모
커밋
3bf7b4ff31
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      src/video/SDL_egl.c

+ 2 - 3
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;