Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGLES graphics upside-down with texture render target #2073

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

OpenGLES graphics upside-down with texture render target #2073

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Labels
duplicate This issue or pull request already exists

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 2.0.4
Reported for operating system, platform: Android (All), x86

Comments on the original bug report:

On 2016-01-10 11:55:24 +0000, Richard Russell wrote:

Created attachment 2360
Output rendered using opengles driver

I am wanting to use OpenGLES (on Android) because I need 'glLogicOp' which is not available in OpenGLES2. However if I force the use of OpenGLES all my graphics are rendered upside-down! I am using a texture as my render target.

See the attached screenshots. The only difference is that in one I use this hint and in the other I don't:

SDL_SetHint (SDL_HINT_RENDER_DRIVER, "opengles") ;

I wonder if this is related to other bugs (e.g. 2700, 2740) which invert the y-coordinate when a render target is used.

On 2016-01-10 11:56:26 +0000, Richard Russell wrote:

Created attachment 2361
Output rendered using opengles2 driver

On 2016-01-10 16:16:56 +0000, Richard Russell wrote:

Functions affected by this bug include SDL_RenderFillRect, SDL_RenderDrawPoint, SDL_RenderDrawPoints, SDL_RenderDrawLine and SDL_RenderDrawLines.

I can't write a patch because the y-coordinates need to be inverted with respect to the height of the target texture (not the window) and I don't know how to discover that.

On 2016-10-01 18:42:09 +0000, Sam Lantinga wrote:

Fixed, thanks!
https://hg.libsdl.org/SDL/rev/16bfa598c1d6

*** This bug has been marked as a duplicate of bug 3347 ***

@SDLBugzilla SDLBugzilla added bug duplicate This issue or pull request already exists labels Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant