SDL/src
Sam Lantinga c0d6bf12b0 Fixed bug 1810 - xxx_RenderReadPixels - incorrect behaviour in certain conditions
PoopiSan

GLES2_RenderReadPixels, GLES_RenderReadPixels, GL_RenderReadPixels and possibly other backends is incorrectly implemented.

If the current target viewport is different than window size the function is reading garbage and according to the function documentation should work with any rendering target "Read pixels from the current rendering target.".

this seems to be caused by this line:

...
SDL_GetWindowSize(window, &w, &h);
2013-07-12 00:55:04 -07:00
..
atomic Added PowerPC and ARM versions of the memory barrier functions. 2013-07-10 20:17:20 -07:00
audio Fixed off-by-one error in SDL_ConvertStereo(). 2013-07-12 01:26:43 -04:00
core Fixed SDL_RWread() returning -1 as unsigned instead of 0 if error on Android. 2013-07-07 16:11:29 +02:00
cpuinfo Happy New Year! 2013-02-15 08:47:44 -08:00
events Fixed some __BEOS__ vs __HAIKU__ preprocessor tests (thanks, Axel!). 2013-07-05 01:09:27 -04:00
file Fixed implicit function declaration for SDL_AndroidGetInternalStoragePath(). 2013-06-02 14:13:21 +02:00
haptic Fixed warning about unused variable. 2013-06-27 11:17:48 -07:00
joystick Fixed name of the Logitech F710 controller 2013-07-11 23:21:09 -07:00
libm Fixed compiler warnings on Haiku. 2013-07-11 12:44:03 -04:00
loadso Happy New Year! 2013-02-15 08:47:44 -08:00
main Added missing call to SDL_stack_free(). 2013-07-06 15:56:06 +02:00
power File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
render Fixed bug 1810 - xxx_RenderReadPixels - incorrect behaviour in certain conditions 2013-07-12 00:55:04 -07:00
stdlib Fixed SDL's implementation of isspace() to check form feed and vertical tab. 2013-07-06 16:05:09 +02:00
test Attempt to fix a compiler warning on Haiku. 2013-07-11 23:17:52 -04:00
thread Added release/acquire memory barriers to the atomic API 2013-07-10 18:31:17 -07:00
timer Updated timer test and fixed performance counter on Mac OS X 2013-06-23 22:19:38 -07:00
video Fixed cast of the OpenGL context type 2013-07-11 23:05:02 -07:00
SDL_assert_c.h Happy New Year! 2013-02-15 08:47:44 -08:00
SDL_assert.c Happy New Year! 2013-02-15 08:47:44 -08:00
SDL_error_c.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_error.c File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_fatal.c Removing old dangerous signal catching code. 2013-06-28 22:49:03 -07:00
SDL_fatal.h Happy New Year! 2013-02-15 08:47:44 -08:00
SDL_hints_c.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_hints.c File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_log.c No, there's no reason not to use fprintf 2013-07-05 21:37:27 -07:00
SDL.c Make it possible to use SDL events separately from the video subsystem. 2013-07-06 12:28:57 -07:00