From f3c3f82cc49d70ffc00a10e49823a54de3e46c6f Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 20 Feb 2017 12:01:37 +0000 Subject: [PATCH] Minor tweaks to GL pipeline view in Qt, to display format for FBO att.s --- qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp b/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp index 68f06417e..8215d6e4a 100644 --- a/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp +++ b/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp @@ -1640,6 +1640,7 @@ void GLPipelineStateViewer::setState() h = tex->height; d = tex->depth; a = tex->arraysize; + format = ToQStr(tex->format.strname); name = tex->name; typeName = ToQStr(tex->resType); @@ -1701,7 +1702,7 @@ void GLPipelineStateViewer::setState() ResourceId ds = dsObjects[dsIdx]; bool filledSlot = (ds != ResourceId()); - bool usedSlot = true; + bool usedSlot = filledSlot; if(showNode(usedSlot, filledSlot)) { uint32_t w = 1, h = 1, d = 1; @@ -1725,6 +1726,7 @@ void GLPipelineStateViewer::setState() h = tex->height; d = tex->depth; a = tex->arraysize; + format = ToQStr(tex->format.strname); name = tex->name; typeName = ToQStr(tex->resType); }