We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3569

Summary: GL_UpdateViewport leaves PROJECTION matrix selected
Product: SDL Reporter: Tom Seddon <bugzilla.libsdl.org>
Component: renderAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: x86_64   
OS: Windows 10   

Description Tom Seddon 2017-01-26 11:53:02 UTC
version: https://github.com/SDL-mirror/SDL/commit/0b5cd9831e112adc1a22a1dd7a87fcce336d6171

renderer: opengl

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.
Comment 1 Sam Lantinga 2017-01-28 05:23:50 UTC
That seems reasonable. Implemented, thanks!
https://hg.libsdl.org/SDL/rev/71d8f9afb690