From 526240f2d5fd304dedc28274715fe6fb6fa4ac40 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 16 Jan 2020 18:13:24 +0000 Subject: [PATCH] Fix order of functions to ensure non-SRGB format in pixel history --- renderdoc/driver/d3d11/d3d11_pixelhistory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/d3d11/d3d11_pixelhistory.cpp b/renderdoc/driver/d3d11/d3d11_pixelhistory.cpp index 7b5c5724e..27d548ed9 100644 --- a/renderdoc/driver/d3d11/d3d11_pixelhistory.cpp +++ b/renderdoc/driver/d3d11/d3d11_pixelhistory.cpp @@ -307,8 +307,8 @@ rdcarray D3D11Replay::PixelHistory(rdcarray event y, slice, mip, sampleIdx, (uint32_t)events.size())); // Use the given type hint for typeless textures - details.texFmt = GetNonSRGBFormat(details.texFmt); details.texFmt = GetTypedFormat(details.texFmt, typeCast); + details.texFmt = GetNonSRGBFormat(details.texFmt); SCOPED_TIMER("D3D11DebugManager::PixelHistory");