[Piglit] [PATCH] glslparsertest: Fix handling of GL_GEOMETRY_VERTICES_OUT_ARB.
Paul Berry
stereotype441 at gmail.com
Tue Jun 11 13:16:57 PDT 2013
When testing geometry shaders, glslparsertest must set
GL_GEOMETRY_VERTICES_OUT_ARB before linking, since the default value
of this setting (0) is fairly useless.
Previously, we were accidentally passing the shader name to
glProgramParameteri() instead of the program name, causing spurious
errors.
---
tests/glslparsertest/glslparsertest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/glslparsertest/glslparsertest.c b/tests/glslparsertest/glslparsertest.c
index 1256b09..bba6cb3 100644
--- a/tests/glslparsertest/glslparsertest.c
+++ b/tests/glslparsertest/glslparsertest.c
@@ -252,7 +252,7 @@ test(void)
* GL_GEOMETRY_VERTICES_OUT_ARB is zero, which
* is useless for testing. Use a value of 3.
*/
- glProgramParameteriARB(prog,
+ glProgramParameteriARB(shader_prog,
GL_GEOMETRY_VERTICES_OUT_ARB,
3);
}
--
1.8.3.1
More information about the Piglit
mailing list