Skip to content

Undo the flipping of GLES viewport and scissor coordinates#497

Merged
RandyGaul merged 1 commit intoRandyGaul:masterfrom
bullno1:gles-viewport-scissor-coordinates
Apr 10, 2026
Merged

Undo the flipping of GLES viewport and scissor coordinates#497
RandyGaul merged 1 commit intoRandyGaul:masterfrom
bullno1:gles-viewport-scissor-coordinates

Conversation

@bullno1
Copy link
Copy Markdown
Contributor

@bullno1 bullno1 commented Apr 10, 2026

When I wrote that comment about flipping ("Flip the scissor rect vertically since OpenGL..."), I was either confused or was experimenting with different render flipping methods to deal with the coordinate differences with Vulkan/SDL_GPU.

In the end it was never needed when flipping is handled by SPIRV-Tools at shader level but I forgot to remove the comment and the rect can just be passed verbatim.

This can be confirmed by running the scissor sample with both the SDL_GPU and GLES renderer.

@RandyGaul RandyGaul merged commit 9ea31b1 into RandyGaul:master Apr 10, 2026
23 checks passed
@bullno1 bullno1 deleted the gles-viewport-scissor-coordinates branch April 10, 2026 05:46
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.

2 participants