Erase descriptor before filling it out

This commit is contained in:
baldurk
2014-07-25 10:06:21 +01:00
parent ca043bf3e2
commit 6ab037f952
+5
View File
@@ -3176,6 +3176,7 @@ vector<PixelModification> D3D11DebugManager::PixelHistory(uint32_t frameID, vect
depthRes->GetType(&dim);
D3D11_TEXTURE2D_DESC desc2d;
RDCEraseEl(desc2d);
if(dim == D3D11_RESOURCE_DIMENSION_TEXTURE1D)
{
@@ -3192,6 +3193,10 @@ vector<PixelModification> D3D11DebugManager::PixelHistory(uint32_t frameID, vect
ID3D11Texture2D *tex = (ID3D11Texture2D *)depthRes;
tex->GetDesc(&desc2d);
}
else
{
RDCERR("Unexpected size of depth buffer");
}
D3D11_TEXTURE2D_DESC *copyDesc = NULL;
if(desc2d.Format == DXGI_FORMAT_R16_FLOAT ||