From b835a4cbad89a93d2ff9c4819d6c8182ca54bfe4 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Sat, 30 Sep 2023 12:31:58 +0100 Subject: [PATCH] Abs x,y for pixel history in Iter_Test python script Prevents exceptions about uint32_t overflow if negative x or y is used --- util/test/tests/Iter_Test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/test/tests/Iter_Test.py b/util/test/tests/Iter_Test.py index bf644d7c6..11faa9a5b 100644 --- a/util/test/tests/Iter_Test.py +++ b/util/test/tests/Iter_Test.py @@ -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()