mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-10 05:18:13 +00:00
Fixed bug 3569 - GL_UpdateViewport leaves PROJECTION matrix selected
Tom Seddon GL_ActivateRenderer may call GL_UpdateViewport, which leaves the GL_PROJECTION matrix selected. But after GL_ResetState, the GL_MODELVIEW matrix is selected, suggesting that's the intended default state. It seems at least like these should be consistent. Presumably GL_UpdateViewport should be doing a glMatrixMode(GL_MODELVIEW) before it finishes.
This commit is contained in:
@@ -1041,6 +1041,8 @@ GL_UpdateViewport(SDL_Renderer * renderer)
|
||||
0.0, 1.0);
|
||||
}
|
||||
}
|
||||
data->glMatrixMode(GL_MODELVIEW);
|
||||
|
||||
return GL_CheckError("", renderer);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user