| Summary: | OpenGL ES renderer doesn't flip projection matrix for target textures | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Simon Hug <chli.hug> |
| Component: | render | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | philipp.wiesemann, rtrussell |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
Test case for testing the projection matrix of target textures.
Patch that flips the projection matrix for target textures in the OpenGL ES renderer. |
||
Created attachment 2469 [details]
Patch that flips the projection matrix for target textures in the OpenGL ES renderer.
Ah, I did see that bug, but totally forgot about it when posting this one. I was able to test it on Linux (Intel driver and MESA) and a Raspberry Pi. Don't have an Android device, sadly. With any luck, OpenGL works the same there. Fixed, thanks! https://hg.libsdl.org/SDL/rev/16bfa598c1d6 |
Created attachment 2468 [details] Test case for testing the projection matrix of target textures. When updating the viewport in GLES_UpdateViewport, the OpenGL ES renderer doesn't flip the projection matrix for target textures. The lines, rectangles and textures (if drawn with glDrawArrays) are upside down when drawing to target textures. Attached is a test case. Patch coming up in next comment.