Identify depth textures by depth format, not just having DSV flag

This commit is contained in:
baldurk
2016-02-21 15:36:05 +01:00
parent bb408e7de4
commit 49669d676e
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -204,6 +204,7 @@ bool ReplayOutput::AddThumbnail(void *wnd, ResourceId texID)
if(m_pRenderer->m_Textures[t].ID == texID)
{
depthMode = (m_pRenderer->m_Textures[t].creationFlags & eTextureCreate_DSV) > 0;
depthMode |= (m_pRenderer->m_Textures[t].format.compType == eCompType_Depth);
break;
}
}