mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-22 22:46:41 +00:00
Erase descriptor before filling it out
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user