tests: fix int overflow error with GLSL shader test on some drivers

This commit is contained in:
rdb 2018-07-08 22:28:52 +02:00
parent abe20fc489
commit 7c8426a79f

View File

@ -168,7 +168,7 @@ def test_glsl_int(gsg):
inputs = dict(
zero=0,
intmax=0x7fffffff,
intmin=-0x80000000,
intmin=-0x7fffffff,
)
preamble = """
uniform int zero;
@ -178,7 +178,7 @@ def test_glsl_int(gsg):
code = """
assert(zero == 0);
assert(intmax == 0x7fffffff);
assert(intmin == -0x80000000);
assert(intmin == -0x7fffffff);
"""
run_glsl_test(gsg, code, preamble, inputs)