mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-25 00:03:42 +00:00
Don't print hit information until we know it's a drawcall
This commit is contained in:
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user