Display thumbnails for empty resources

This commit is contained in:
baldurk
2021-04-12 13:04:02 +01:00
parent c3ca732ab9
commit 6a6b7f68e1
+1 -1
View File
@@ -2491,7 +2491,7 @@ void TextureViewer::InitStageResourcePreviews(ShaderStage stage,
bool show = key.used || copy;
// omit buffers even if the shader uses them.
if(m_Ctx.GetTexture(res.resourceId) == NULL)
if(res.resourceId != ResourceId() && m_Ctx.GetTexture(res.resourceId) == NULL)
show = copy;
// it's bound, but not referenced, and we have "show disabled"