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.
authorAlex Szpakowski <slime73@gmail.com>
Sun, 26 May 2019 18:53:36 -0300
changeset 1275796bca5da4965
parent 12756 4116bf232fe7
child 12758 3c6a6dad3487
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.
src/video/uikit/SDL_uikitopengles.m
     1.1 --- a/src/video/uikit/SDL_uikitopengles.m	Thu May 23 14:19:00 2019 -0700
     1.2 +++ b/src/video/uikit/SDL_uikitopengles.m	Sun May 26 18:53:36 2019 -0300
     1.3 @@ -96,6 +96,8 @@
     1.4              if (h) {
     1.5                  *h = glview.backingHeight;
     1.6              }
     1.7 +        } else {
     1.8 +            SDL_GetWindowSize(window, w, h);
     1.9          }
    1.10      }
    1.11  }