Go to file
Sam Lantinga de3d381cb6 Fixed bug 2685 - SDL_RenderReadPixels() doesn't work with offscreen targets
Andreas Falkenhahn

SDL_RenderReadPixels() doesn't seem to work when trying to read pixels from a texture that has been created using SDL_TEXTUREACCESS_TARGET and has been selected as the render target using SDL_SetRenderTarget().

I am attaching a small program that demonstrates the issue. I get the following result here:

READ PIXEL RETURN: 0 --- COLOR CHECK: ff000000

But it should be:

READ PIXEL RETURN: 0 --- COLOR CHECK: ffff0000

Tested with SDL 2.0.3 on Windows 7.
2014-08-17 14:44:53 -07:00
VisualC Turned on OmitDefaultLibName for SDL, SDLmain and SDLtest 2014-07-27 19:56:53 -07:00
VisualC-WinRT Made the latest XInput + Haptic changes compile and run on WinRT 2014-07-04 18:20:23 -04:00
Xcode Strip the binaries before signing them, in release configuration 2014-07-08 00:23:36 -07:00
Xcode-iOS Fixed bug 2626 - iOS: fix test and template Xcode projects and build scripts to link with CoreMotion 2014-07-07 10:42:19 -07:00
acinclude Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
android-project Fixed warning about implicit boxing to Java Object. 2014-08-12 23:33:16 +02:00
build-scripts Fixed indentation for pnacl configuration 2014-07-07 11:13:19 -07:00
cmake Fixed bug 2683 - Raspberry PI support using CMake 2014-08-16 23:28:40 -07:00
debian Added libibus-1.0-dev build dependency 2014-06-21 17:31:36 -07:00
docs Fixed markdown formatting in READMEs. 2014-08-15 23:39:14 +02:00
include Removed SDL_round() because the license wasn't compatible with zlib 2014-08-17 13:11:55 -07:00
premake Fixed bug 2618 - incomplete pthread-based lock support should be removed 2014-07-07 21:27:42 -07:00
src Fixed bug 2685 - SDL_RenderReadPixels() doesn't work with offscreen targets 2014-08-17 14:44:53 -07:00
test Fixed bug 2688 - failure to build test/loopwavequeue.c on Linux 2014-08-17 10:10:41 -07:00
visualtest Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
.hgignore Added audio device buffer queueing API. 2014-07-22 21:41:49 -04:00
Android.mk Implemented SDL_GetPrefPath() on Android - it returns the path used by SDL_AndroidGetInternalStoragePath() 2014-08-11 17:25:53 -07:00
BUGS.txt Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
CMakeLists.txt Reset CMAKE_REQUIRED_FLAGS after test 2014-08-17 13:49:53 -07:00
COPYING.txt Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
CREDITS.txt Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
INSTALL.txt Moved documentation to docs, recreated a simple README.txt, fixed build 2014-07-29 08:04:15 -07:00
Makefile.in Make autoconf-based build quiet by default. 2014-06-19 00:40:09 -04:00
Makefile.minimal Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
Makefile.pandora Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
Makefile.psp Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
Makefile.wiz Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
README-SDL.txt Moved documentation to docs, recreated a simple README.txt, fixed build 2014-07-29 08:04:15 -07:00
README.txt Moved documentation to docs, recreated a simple README.txt, fixed build 2014-07-29 08:04:15 -07:00
SDL2.spec.in Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
TODO.txt Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
VisualC.html Fixed nesting of HTML elements in documentation. 2014-06-09 17:37:59 +02:00
WhatsNew.txt Chrome's Native Client backend implementation 2014-06-06 15:45:59 -03:00
autogen.sh Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
cmake_uninstall.cmake.in Add suport for "make uninstall" to cmake. 2014-06-16 10:58:09 -03:00
configure Removed SDL_round() because the license wasn't compatible with zlib 2014-08-17 13:11:55 -07:00
configure.in Removed SDL_round() because the license wasn't compatible with zlib 2014-08-17 13:11:55 -07:00
sdl2-config.in Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
sdl2.m4 Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
sdl2.pc.in Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00

README.txt

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.


                         Simple DirectMedia Layer

                                  (SDL)

                                Version 2.0

---
http://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed
to provide low level access to audio, keyboard, mouse, joystick, and graphics
hardware via OpenGL and Direct3D. It is used by video playback software,
emulators, and popular games including Valve's award winning catalog
and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting
with README.md

Enjoy!
	Sam Lantinga				(slouken@libsdl.org)