BUGS.txt
author Sam Lantinga
Sun, 05 Apr 2020 08:58:47 -0700
changeset 13689 c3055b205671
parent 10952 fabcc99bb455
permissions -rw-r--r--
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.
slouken@7222
     1
slouken@7222
     2
Bugs are now managed in the SDL bug tracker, here:
slouken@7222
     3
icculus@10236
     4
    https://bugzilla.libsdl.org/
slouken@7222
     5
slouken@7222
     6
You may report bugs there, and search to see if a given issue has already
slouken@7222
     7
 been reported, discussed, and maybe even fixed.
slouken@7222
     8
slouken@7222
     9
icculus@10952
    10
You may also find help at the SDL forums/mailing list:
slouken@7222
    11
icculus@10952
    12
    https://discourse.libsdl.org/
slouken@7222
    13
slouken@7222
    14
Bug reports are welcome here, but we really appreciate if you use Bugzilla, as
slouken@7222
    15
 bugs discussed on the mailing list may be forgotten or missed.
slouken@7222
    16