Skip to content

Commit

Permalink
iOS: return SDL_GetWindowSize from SDL_GL_GetDrawableSize if there's …
Browse files Browse the repository at this point in the history
…no GLES view in the window (matches the behaviour of SDL_GL_GetDrawableSize on other platforms). Addresses bug #4629.
  • Loading branch information
slime73 committed May 26, 2019
1 parent dce56ab commit 9b58115
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/uikit/SDL_uikitopengles.m
Expand Up @@ -96,6 +96,8 @@ - (void)dealloc
if (h) {
*h = glview.backingHeight;
}
} else {
SDL_GetWindowSize(window, w, h);
}
}
}
Expand Down

0 comments on commit 9b58115

Please sign in to comment.