acinclude/ltversion.m4
author Sam Lantinga
Sun, 05 Apr 2020 08:58:47 -0700
changeset 13689 c3055b205671
parent 6442 2d3caa191dc4
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 # ltversion.m4 -- version numbers			-*- Autoconf -*-
     2 #
     3 #   Copyright (C) 2004 Free Software Foundation, Inc.
     4 #   Written by Scott James Remnant, 2004
     5 #
     6 # This file is free software; the Free Software Foundation gives
     7 # unlimited permission to copy and/or distribute it, with or without
     8 # modifications, as long as this notice is preserved.
     9 
    10 # @configure_input@
    11 
    12 # serial 3337 ltversion.m4
    13 # This file is part of GNU Libtool
    14 
    15 m4_define([LT_PACKAGE_VERSION], [2.4.2])
    16 m4_define([LT_PACKAGE_REVISION], [1.3337])
    17 
    18 AC_DEFUN([LTVERSION_VERSION],
    19 [macro_version='2.4.2'
    20 macro_revision='1.3337'
    21 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
    22 _LT_DECL(, macro_revision, 0)
    23 ])