commit | 6abdc4d69509090ea63fa874574b432b18debf8f | [log] [tgz] |
---|---|---|
author | Sam Lantinga <slouken@libsdl.org> | Sat Oct 01 11:38:53 2016 -0700 |
committer | Sam Lantinga <slouken@libsdl.org> | Sat Oct 01 11:38:53 2016 -0700 |
tree | 390feea5d9ed0afd876988e9e108a79f190295a2 | |
parent | baf451075860fd0ec55bef246f2445194118bf84 [diff] |
Fixed bug 3349 - GLES2_RenderReadPixels doesn't use target texture format Simon Hug The OpenGL ES 2 renderer does not check the target texture format when using SDL_RenderReadPixels and just always uses ABGR8888. This can result in swapped or wrong colors. The attached patch adds a check and selects the target texture format, if a texture is set as the target.