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 2261 - Test testrendercopyex draws mirrored output
Summary: Test testrendercopyex draws mirrored output
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.1
Hardware: x86_64 Linux
: P2 normal
Assignee: Gabriel Jacobo
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-22 14:08 UTC by Daniel Knobe
Modified: 2013-11-29 02:45 UTC (History)
0 users

See Also:


Attachments
Mirrored screen output (82.78 KB, image/png)
2013-11-22 14:08 UTC, Daniel Knobe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Knobe 2013-11-22 14:08:04 UTC
Created attachment 1465 [details]
Mirrored screen output

Executing testrendercopyex on some devices - tested on Galaxy Tab 2 10.1 - Cyanogenmod 10.1 (~Android 4.2.2) draws a mirrored screen output.

I could only test it on landscape mode until jet.
See attachment for screen output.
Comment 1 Daniel Knobe 2013-11-23 11:47:03 UTC
I have did one more test to see where the problem come from.

If I comment the following code:
...
    //target = SDL_CreateTexture(s->renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_TARGET, viewport.w, viewport.h);
    //SDL_SetRenderTarget(s->renderer, target);
...
    //SDL_SetRenderTarget(s->renderer, NULL);
    //SDL_RenderCopy(s->renderer, target, NULL, NULL);
    //SDL_DestroyTexture(target);

Everything works on the tablet, too. So switching on a texture as the rendering target and that drawing it on the screen leads to that problem on this device.
Comment 2 Gabriel Jacobo 2013-11-25 13:52:06 UTC
Is this the opengles 2 renderer? Any other info you can provide? Do you see it on other devices?
Comment 3 Sam Lantinga 2013-11-27 08:33:20 UTC
Can you try the latest SDL snapshot?
http://www.libsdl.org/tmp/SDL-2.0.zip

Thanks!
Comment 4 Daniel Knobe 2013-11-28 18:22:01 UTC
Sorry for the late answer.

Yes the actual version of SDL fixes the problem!

Thanks!
Comment 5 Sam Lantinga 2013-11-29 02:45:10 UTC
Great, thanks!