[Piglit] [PATCH 1/2] generated tests: Fix the "#version 110" skipping I broke.
Eric Anholt
eric at anholt.net
Wed May 9 20:51:21 PDT 2012
The float changes I did for a bunch of the >= comparisons were not
fully done here, and the comparison was always false, so we got a
bunch of extra #version 110 statements.
---
generated_tests/gen_builtin_uniform_tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/generated_tests/gen_builtin_uniform_tests.py b/generated_tests/gen_builtin_uniform_tests.py
index 5ff595f..04d547e 100644
--- a/generated_tests/gen_builtin_uniform_tests.py
+++ b/generated_tests/gen_builtin_uniform_tests.py
@@ -362,7 +362,7 @@ class ShaderTest(object):
return self._signature.version_introduced
def version_directive(self):
- if float(self.glsl_version()) == '1.10':
+ if self.glsl_version() == '1.10':
return ''
else:
return '#version {0}\n'.format(self.glsl_version().replace('.', ''))
--
1.7.10
More information about the Piglit
mailing list