diff options
author | Paul Berry <stereotype441@gmail.com> | 2013-02-22 05:37:32 -0800 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2013-02-27 10:02:00 -0800 |
commit | ee8e683c5de437f9758a44764899921e933414a4 (patch) | |
tree | ab7098eda3e490afd6dfa8035695ea130b57facb /generated_tests | |
parent | 869d91299d41022f29d31384616c9cc56dec1554 (diff) |
generated_tests: Fix geometry shader tests to use gl_VerticesIn
Commit ff315ae (Add geometry testing to code-generated tests)
erroneously omitted the parentheses when calling
glPositionIn.length(). It also failed to account for the fact that
the .length() method is unavailable in GLSL 1.10.
This patch modifies the code to use gl_VerticesIn instead, since this
is provided by ARB_geometry_shader4, and hence is available regardless
of the GLSL version being tested.
Thanks to Ken Phillis Jr for discovering this bug.
Cc: Ken Phillis Jr <kphillisjr@gmail.com>
Diffstat (limited to 'generated_tests')
-rw-r--r-- | generated_tests/gen_builtin_uniform_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generated_tests/gen_builtin_uniform_tests.py b/generated_tests/gen_builtin_uniform_tests.py index 0d43847f5..e0b6da235 100644 --- a/generated_tests/gen_builtin_uniform_tests.py +++ b/generated_tests/gen_builtin_uniform_tests.py @@ -580,7 +580,7 @@ class GeometryShaderTest(ShaderTest): additional_declarations, ' vec4 tmp_color;\n', 'tmp_color', - ' for (int i = 0; i < gl_PositionIn.length; i++) {\n' + ' for (int i = 0; i < gl_VerticesIn; i++) {\n' ' gl_Position = gl_PositionIn[i];\n' ' color = tmp_color;\n' ' EmitVertex();\n' |