From 4809615a8f13fd18a1dd5f14877f5f5e8e273bae Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 17 Sep 2020 15:05:21 +0100 Subject: [PATCH] Don't print hit information until we know it's a drawcall --- util/test/tests/Iter_Test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/test/tests/Iter_Test.py b/util/test/tests/Iter_Test.py index 4bf228d43..02203cdf9 100644 --- a/util/test/tests/Iter_Test.py +++ b/util/test/tests/Iter_Test.py @@ -209,11 +209,11 @@ class Iter_Test(rdtest.TestCase): mod = history[i] draw = self.find_draw('', mod.eventId) - rdtest.log.print(" hit %d at %d is %s (%s)" % (i, mod.eventId, draw.name, str(draw.flags))) - if draw is None or not (draw.flags & rd.DrawFlags.Drawcall): continue + rdtest.log.print(" hit %d at %d is %s (%s)" % (i, mod.eventId, draw.name, str(draw.flags))) + lastmod = history[i] rdtest.log.print("Got a hit on a drawcall at event %d" % lastmod.eventId)