Account correctly for UAV mip slice when fetching 2D texture data

This commit is contained in:
baldurk committed 2018-01-05 11:41:19 +00:00
1 parent de7a74c7e5
commit a453307d5e
1 file changed
+1 -1
+1 -1
View File
@@ -748,7 +748,7 @@ void D3D11DebugManager::CreateShaderGlobalState(ShaderDebug::GlobalState &global
rowPitch = mapped.RowPitch;
depthPitch = 0;
size_t datasize = rowPitch * desc.Height;
size_t datasize = rowPitch * RDCMAX(1U, desc.Height >> udesc.Texture2D.MipSlice);
uint32_t numSlices = 1;