소스 검색

iOS: return SDL_GetWindowSize from SDL_GL_GetDrawableSize if there's no GLES view in the window (matches the behaviour of SDL_GL_GetDrawableSize on other platforms). Addresses bug #4629.

Alex Szpakowski 7 년 전
부모
커밋
9b5811592d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/video/uikit/SDL_uikitopengles.m

+ 2 - 0
src/video/uikit/SDL_uikitopengles.m

@@ -96,6 +96,8 @@ UIKit_GL_GetDrawableSize(_THIS, SDL_Window * window, int * w, int * h)
             if (h) {
             if (h) {
                 *h = glview.backingHeight;
                 *h = glview.backingHeight;
             }
             }
+        } else {
+            SDL_GetWindowSize(window, w, h);
         }
         }
     }
     }
 }
 }