Skip to content

Commit

Permalink
opengl: Undo the macOS workaround used for libsdl-org#1504
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Apr 8, 2022
1 parent 187d8fa commit 3b44162
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/render/opengl/SDL_render_gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1216,13 +1216,6 @@ 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) {
switch (cmd->command) {
case SDL_RENDERCMD_SETDRAWCOLOR: {
Expand Down

0 comments on commit 3b44162

Please sign in to comment.