Abs x,y for pixel history in Iter_Test python script

Prevents exceptions about uint32_t overflow if negative x or y is used
This commit is contained in:
Jake Turner
2023-09-30 12:31:58 +01:00
parent 51fd2e8d9b
commit b835a4cbad
+2
View File
@@ -182,6 +182,8 @@ class Iter_Test(rdtest.TestCase):
# TODO, query for some pixel this action actually touched.
x = int(random.random()*viewport.width + viewport.x)
y = int(random.random()*viewport.height + viewport.y)
x = abs(x)
y = abs(y)
target = rd.ResourceId.Null()