Don't display buffers as thumbnails in texture viewer

* This is a holdover from simpler binding times, these days it makes more sense
  to omit buffers than try to hold onto those bindings even when they don't
  contain textures.
This commit is contained in:
baldurk
2021-01-21 10:43:37 +00:00
parent be3a6a5dfb
commit c002c71fe8
+4
View File
@@ -2490,6 +2490,10 @@ void TextureViewer::InitStageResourcePreviews(ShaderStage stage,
// show if it's referenced by the shader - regardless of empty or not
bool show = key.used || copy;
// omit buffers even if the shader uses them.
if(m_Ctx.GetTexture(res.resourceId) == NULL)
show = copy;
// it's bound, but not referenced, and we have "show disabled"
show = show || (m_ShowUnused && res.resourceId != ResourceId());