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 3192 - OpenGLES2 renderer broken (rotation)
Summary: OpenGLES2 renderer broken (rotation)
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: HG 2.1
Hardware: x86_64 Windows 7
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-01 15:50 UTC by Martin Gerhardy
Modified: 2019-10-23 09:16 UTC (History)
1 user (show)

See Also:


Attachments
video opengles2 windows - broken (266.54 KB, video/x-flv)
2015-12-01 15:51 UTC, Martin Gerhardy
Details
video direct3d windows - not broken (377.08 KB, video/x-flv)
2015-12-01 15:52 UTC, Martin Gerhardy
Details
tescase (1.85 KB, text/x-csrc)
2017-11-03 09:12 UTC, Sylvain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Gerhardy 2015-12-01 15:50:48 UTC
As can be seen in the attached videos, the renderer that rotates the scene weird is basically the opengles2 renderer on windows (works fine on linux btw). If i switch the renderer to direct3d with the renderer hint, everything works fine again (same for opengl) - as can be seen in the videos.
Comment 1 Martin Gerhardy 2015-12-01 15:51:49 UTC
Created attachment 2316 [details]
video opengles2 windows - broken
Comment 2 Martin Gerhardy 2015-12-01 15:52:10 UTC
Created attachment 2317 [details]
video direct3d windows - not broken
Comment 3 Martin Gerhardy 2015-12-01 15:52:54 UTC
oh.. latest hg revision btw.
Comment 4 Martin Gerhardy 2015-12-30 18:51:02 UTC
I was now also able to reproduce the issue with linux opengles2 renderer
Comment 5 Martin Gerhardy 2015-12-30 19:08:35 UTC
The error is most likely in GLES2_RenderCopyEx. I'm using a rotation per sprite (for the font characters) - but instead the whole scene is rotated. Another explanation is that the shaders from SDL_shaders_gles2.c are doing the rotation in a different way than all the other renderers.
Comment 6 Sylvain 2017-11-03 09:12:57 UTC
Created attachment 3062 [details]
tescase

I tried with this test case and could not reproduce it. Does this issue still exist ? 
I saw no modification to GLES2_RenderCopyEx in the meantimes though
Comment 7 Sylvain 2019-10-23 09:16:26 UTC
As tested, this is working to me. 
Please re-opening if you have still the issue!