mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 21:55:52 +00:00
Fix python3 warning about use of 'is not' for literal comparison
This commit is contained in:
@@ -18,7 +18,7 @@ class D3D12_PrimitiveID(rdtest.TestCase):
|
||||
primInput = self.find_input_source_var(trace, rd.ShaderBuiltin.PrimitiveIndex)
|
||||
if primInput is None:
|
||||
# If we didn't find it, then we should be expecting a 0
|
||||
if len(expected_prim) > 1 or expected_prim[0] is not 0:
|
||||
if len(expected_prim) > 1 or expected_prim[0] != 0:
|
||||
rdtest.log.error("Expected prim {} at {},{} did not match actual prim {}.".format(
|
||||
str(expected_prim), x, y, prim))
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user