mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Add check for all-opaque-black markers and ignore. Works around UE4
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user