From 00ec7c3fd98febea81031e21d08654a110df8d17 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 18 Nov 2025 18:12:28 +0000 Subject: [PATCH] Use correct texture dimension to check for 3D texture copies --- renderdoc/driver/d3d12/d3d12_pixelhistory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp b/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp index e2da7212e..1da577e11 100644 --- a/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp +++ b/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp @@ -693,7 +693,7 @@ protected: } uint32_t baseMip = m_CallbackInfo.targetSubresource.mip; - bool copy3d = m_CallbackInfo.targetDesc.Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D; + bool copy3d = srcDesc.Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D; uint32_t baseSlice = m_CallbackInfo.targetSubresource.slice; uint32_t arraySize = m_CallbackInfo.targetDesc.DepthOrArraySize; uint32_t depthIndex = 0;