Don't error if GetBufferData() is called with ResourceId 0, just return

This commit is contained in:
baldurk
2016-07-25 13:58:44 +02:00
parent 15bf143352
commit 535cec5b10
+1 -1
View File
@@ -449,7 +449,7 @@ bool ReplayRenderer::GetHistogram(ResourceId tex, uint32_t sliceFace, uint32_t m
bool ReplayRenderer::GetBufferData(ResourceId buff, uint64_t offset, uint64_t len,
rdctype::array<byte> *data)
{
if(data == NULL)
if(data == NULL || buff == ResourceId())
return false;
ResourceId liveId = m_pDevice->GetLiveID(buff);