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

Summary: Test testrendercopyex draws mirrored output
Product: SDL Reporter: Daniel Knobe <Daniel-Knobe>
Component: *don't know*Assignee: Gabriel Jacobo <gabomdq>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.1   
Hardware: x86_64   
OS: Linux   
Attachments: Mirrored screen output

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!