mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user