sdl2_frt/src/render/opengles
Sam Lantinga 51d6371ec1 Fixed bug 3350 - GL renderers don't need to flip rows after reading back pixels from the target texture
Simon Hug

All OpenGL renderers always flip the rows of the pixels that come from glReadPixels. This is unnecessary for target textures since these are already top down.

Also, the rect->y value can be used directly for target textures for the same reason. I don't see any code that would handle the logical render size for target textures. Or am I missing something?

The attached patch makes the renderers only the flip rows if the data comes from the default framebuffer.
2016-10-01 11:34:04 -07:00
..
SDL_glesfuncs.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_render_gles.c Fixed bug 3350 - GL renderers don't need to flip rows after reading back pixels from the target texture 2016-10-01 11:34:04 -07:00