mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-11 02:45:41 +00:00
SDL_render_gl.c: GL_RunCommandQueue: always set viewport_dirty on macOS
Without this, moving the window changes the viewport and causes contents to render stretched. Fixes #1504
This commit is contained in:
parent
4f683f01d4
commit
b786c10013
|
@ -1169,6 +1169,12 @@ GL_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *vertic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __MACOSX__
|
||||||
|
// On macOS, moving the window seems to invalidate the OpenGL viewport state,
|
||||||
|
// so don't bother trying to persist it across frames; always reset it.
|
||||||
|
// Workaround for: https://github.com/libsdl-org/SDL/issues/1504
|
||||||
|
data->drawstate.viewport_dirty = SDL_TRUE;
|
||||||
|
#endif
|
||||||
|
|
||||||
while (cmd) {
|
while (cmd) {
|
||||||
switch (cmd->command) {
|
switch (cmd->command) {
|
||||||
|
|
Loading…
Reference in a new issue