Add check for all-opaque-black markers and ignore. Works around UE4

This commit is contained in:
baldurk
2016-05-28 12:25:29 +02:00
parent 60706ca4eb
commit 9e2fa30a7e
2 changed files with 55 additions and 1 deletions
+5 -1
View File
@@ -515,12 +515,16 @@ namespace renderdocui.Windows
if (s.Name.Length > 0)
{
var col = depth % 2 == 0 ? lightBack : darkBack;
var textcol = Color.Black;
if (s.color.A > 0)
{
col = s.color;
textcol = s.textcolor;
}
g.Clip = new Region(clipRect);
var childRect = DrawBar(g, col, s.textcolor, rect, start, widths[i], (s.Expanded ? "- " : "+ ") + s.Name, visible);
var childRect = DrawBar(g, col, textcol, rect, start, widths[i], (s.Expanded ? "- " : "+ ") + s.Name, visible);
g.ResetClip();
RenderSection(depth + 1, g, childRect, s, visible && s.Expanded, visible ? childRect.Top : lastVisibleHeight);