Browse Source

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

rdb 7 years ago
parent
commit
7c8426a79f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/display/test_glsl_shader.py

+ 2 - 2
tests/display/test_glsl_shader.py

@@ -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)