.hgignore
author Sam Lantinga
Sun, 05 Apr 2020 08:58:47 -0700
changeset 13689 c3055b205671
parent 13477 98899a226da5
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.
     1 syntax:glob
     2 aclocal.m4
     3 autom4te*
     4 config.cache
     5 config.log
     6 config.status
     7 libtool
     8 Makefile
     9 Makefile.rules
    10 sdl2-config
    11 sdl2-config.cmake
    12 sdl2.pc
    13 SDL2.spec
    14 build
    15 gen
    16 Build
    17 
    18 # for CMake
    19 CMakeFiles/
    20 CMakeCache.txt
    21 cmake_install.cmake
    22 cmake_uninstall.cmake
    23 SDL2ConfigVersion.cmake
    24 *.a
    25 *.la
    26 *.so
    27 *.so.*
    28 .ninja_*
    29 *.ninja
    30 
    31 # for CLion
    32 .idea
    33 cmake-build-*
    34 
    35 # for Xcode
    36 *.orig
    37 *.swp
    38 *.tmp
    39 *.rej
    40 *~
    41 *.o
    42 *.mode1*
    43 *.perspective*
    44 *.pbxuser
    45 (^|/)build($|/)
    46 .DS_Store
    47 xcuserdata
    48 *.xcworkspace
    49 
    50 # for Visual C++
    51 Debug
    52 Release
    53 *.user
    54 *.ncb
    55 *.suo
    56 *.sdf
    57 VisualC/tests/loopwave/sample.wav
    58 VisualC/tests/testautomation/CompareSurfaces0001_Reference.bmp
    59 VisualC/tests/testautomation/CompareSurfaces0001_TestOutput.bmp
    60 VisualC/tests/testgamecontroller/axis.bmp
    61 VisualC/tests/testgamecontroller/button.bmp
    62 VisualC/tests/testgamecontroller/controllermap.bmp
    63 VisualC/tests/testoverlay2/moose.dat
    64 VisualC/tests/testrendertarget/icon.bmp
    65 VisualC/tests/testrendertarget/sample.bmp
    66 VisualC/tests/testscale/icon.bmp
    67 VisualC/tests/testscale/sample.bmp
    68 VisualC/tests/testsprite2/icon.bmp
    69 VisualC/visualtest/icon.bmp
    70 VisualC/visualtest/testquit.actions
    71 VisualC/visualtest/testquit.config
    72 VisualC/visualtest/testquit.exe
    73 VisualC/visualtest/testquit.parameters
    74 VisualC/visualtest/testsprite2.exe
    75 VisualC/visualtest/testsprite2_sample.actions
    76 VisualC/visualtest/testsprite2_sample.config
    77 VisualC/visualtest/testsprite2_sample.parameters
    78 
    79 # for Android
    80 android-project/local.properties
    81 
    82 test/aclocal.m4
    83 test/autom4te*
    84 test/config.cache
    85 test/config.log
    86 test/config.status
    87 test/Makefile
    88 test/SDL2.dll
    89 test/checkkeys
    90 test/controllermap
    91 test/loopwave
    92 test/loopwavequeue
    93 test/testatomic
    94 test/testaudiocapture
    95 test/testaudiohotplug
    96 test/testaudioinfo
    97 test/testautomation
    98 test/testbounds
    99 test/testcustomcursor
   100 test/testdisplayinfo
   101 test/testdraw2
   102 test/testdrawchessboard
   103 test/testdropfile
   104 test/testerror
   105 test/testfile
   106 test/testfilesystem
   107 test/testgamecontroller
   108 test/testgesture
   109 test/testgl2
   110 test/testgles
   111 test/testgles2
   112 test/testhaptic
   113 test/testhittesting
   114 test/testhotplug
   115 test/testiconv
   116 test/testime
   117 test/testintersections
   118 test/testjoystick
   119 test/testkeys
   120 test/testloadso
   121 test/testlock
   122 test/testmessage
   123 test/testmultiaudio
   124 test/testnative
   125 test/testoverlay2
   126 test/testplatform
   127 test/testpower
   128 test/testqsort
   129 test/testrelative
   130 test/testrendercopyex
   131 test/testrendertarget
   132 test/testresample
   133 test/testrumble
   134 test/testscale
   135 test/testsem
   136 test/testsensor
   137 test/testshader
   138 test/testshape
   139 test/testsprite2
   140 test/testspriteminimal
   141 test/teststreaming
   142 test/testthread
   143 test/testtimer
   144 test/testver
   145 test/testviewport
   146 test/testvulkan
   147 test/testwm2
   148 test/testyuv
   149 test/torturethread
   150 test/*.exe
   151 test/*,e1f
   152 test/*,ff8
   153 test/*.dSYM
   154 buildbot
   155 test/buildbot