SDL/src
Sam Lantinga d4b561f472 Fixed bug 5015 - SDL_RenderReadPixels on DirectX 11.1 backend seems to be broken
Konrad

It appears that I cannot use SDL_RenderReadPixels on a bound framebuffer (SDL_Texture set as render target) as it simply results in gibberish data. However, drawing that framebuffer into the default target (window surface) does render it correctly. Other backends (OpenGL, software, Direct3D) do work fine.

It looks to me like D3D11_RenderReadPixels just gets the general backbuffer and not the current render target and its backbuffer.

Here is the patch which actually fetches the current render target and its underlying ID3D11Resource which is ID3D11Texture2D.
2020-04-05 08:58:47 -07:00
..
atomic Add basic support for compiling on RISC OS 2020-02-13 20:50:47 +00:00
audio Fixed setting the "playandrecord" audio hint on Apple TV 2020-04-02 12:27:29 -07:00
core Enable thread-safety features in libdbus 2020-03-30 14:26:15 -07:00
cpuinfo Improved CPU detection on ARM platforms 2020-02-04 16:46:22 +00:00
dynapi virtual joysticks: removed ball support (Bug 5028) 2020-03-15 13:25:49 -04:00
events Fixed warnings building with mingw64 2020-03-08 21:24:06 -07:00
file Fixed compile warning 2020-02-10 13:59:05 -08:00
filesystem Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
haptic Fixed bug 3446 - The haptic API does not allow to select the direction axes 2020-03-17 14:18:05 -07:00
hidapi Removed blacklist entries for devices that aren't game controllers, allow Steam Controllers 2020-03-20 20:53:26 -07:00
joystick SDL: plumb previously unused digital trigger bits for PS4 controllers. Victrix fight stick only sets these bits and doesn't send the analog values 2020-03-30 14:26:21 -07:00
libm Fixed compiler warning 2020-01-29 20:09:16 -08:00
loadso Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
main Backed out changeset 51622f74dc85 2020-03-10 18:35:31 -07:00
power Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
render Fixed bug 5015 - SDL_RenderReadPixels on DirectX 11.1 backend seems to be broken 2020-04-05 08:58:47 -07:00
sensor Fixed bug 5052 - Interval between SDL_SENSORUPDATE events for gyroscopes is too high 2020-03-23 12:10:05 -07:00
stdlib Fixed bug 5022 - SDL_iconv_string can get stuck in an infinite loop when encountering invalid characters 2020-03-10 16:29:28 -07:00
test test: Reimplemented SDLTest_CommonUsage() to restore binary compatibility. 2020-02-12 13:09:38 -05:00
thread Updated thread priorities for Apple operating systems 2020-04-01 16:39:05 -07:00
timer Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
video Fixed Bug 4883, redux - connect SDL_GetDisplayDPI to UIKit_GetDisplayDPI 2020-03-28 15:43:55 -04:00
SDL.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_assert.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_assert_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dataqueue.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dataqueue.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_error.c Added SDL_GetErrorMsg() to get the error message in a thread-safe way 2020-03-13 21:28:09 -07:00
SDL_error_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_hints.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_hints_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_internal.h SDL_LEAN_AND_MEAN defaults off 2020-01-23 01:03:23 -08:00
SDL_log.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00