docs/README-pandora.md
author Sam Lantinga
Sun, 05 Apr 2020 08:58:47 -0700
changeset 13689 c3055b205671
parent 10486 5bf595c48fd4
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@10486
     1
Pandora 
gabomdq@9023
     2
=====================================================================
slouken@10486
     3
slouken@10486
     4
( http://openpandora.org/ )
gabomdq@9023
     5
- A pandora specific video driver was written to allow SDL 2.0 with OpenGL ES
gabomdq@9023
     6
support to work on the pandora under the framebuffer. This driver do not have
gabomdq@9023
     7
input support for now, so if you use it you will have to add your own control code.
gabomdq@9023
     8
The video driver name is "pandora" so if you have problem running it from
gabomdq@9023
     9
the framebuffer, try to set the following variable before starting your application :
gabomdq@9023
    10
"export SDL_VIDEODRIVER=pandora"
gabomdq@9023
    11
gabomdq@9023
    12
- OpenGL ES support was added to the x11 driver, so it's working like the normal
gabomdq@9023
    13
x11 driver one with OpenGLX support, with SDL input event's etc..
gabomdq@9023
    14
gabomdq@9023
    15
gabomdq@9023
    16
David Carré (Cpasjuste)
gabomdq@9023
    17
cpasjuste@gmail.com