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

This commit is contained in:
baldurk
2018-01-05 10:50:44 +00:00
parent 565f8e2f97
commit ef788c7e4f
+1 -1
View File
@@ -739,7 +739,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;