Don't print hit information until we know it's a drawcall

This commit is contained in:
baldurk committed 2020-09-17 15:05:21 +01:00
1 parent 56f76f6ffa
commit 4809615a8f
1 file changed
+2 -2
+2 -2
View File
@@ -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)