Skip to content

Conversation

flibitijibibo
Copy link
Collaborator

For OpenGL this means resetting the viewport state shadowing flag too.

Fixes #1504

Tested this against VVVVVV after remembering that macOS defaults to Metal (can you tell I don't do Mac stuff anymore...). The main bug was that the viewport flag needed to be reset on window changes, but the upper-level change is still important for DPI changes as well.

For OpenGL this means resetting the viewport state shadowing flag too.

Fixes libsdl-org#1504
@flibitijibibo flibitijibibo added this to the 2.0.22 milestone Apr 8, 2022
@flibitijibibo flibitijibibo requested review from icculus and slouken April 8, 2022 06:27
@slouken slouken merged commit cb81630 into libsdl-org:main Apr 8, 2022
@flibitijibibo flibitijibibo deleted the renderfixes-gl branch April 8, 2022 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SDL_RenderSetLogicalSize stretches render with SDL_WINDOW_ALLOW_HIGHDPI when window is resized and moved
2 participants