[Piglit] [PATCH] Transform feedback: skip "order" tests when GL version < 3.0

Paul Berry stereotype441 at gmail.com
Mon Dec 19 15:14:18 PST 2011


The EXT_transform_feedback/order tests use glUniform1ui, which is not
supported before OpenGL 3.0.  So, if the implementation supports
transform feedback but does not support OpenGL 3.0, skip these tests.
---
 tests/spec/ext_transform_feedback/order.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/spec/ext_transform_feedback/order.c b/tests/spec/ext_transform_feedback/order.c
index 5566247..3a3fab8 100644
--- a/tests/spec/ext_transform_feedback/order.c
+++ b/tests/spec/ext_transform_feedback/order.c
@@ -133,6 +133,7 @@ initialize_shader_and_xfb()
 {
 	GLuint vs;
 
+	piglit_require_gl_version(30);
 	piglit_require_GLSL_version(130);
 	piglit_require_transform_feedback();
 	vs = piglit_compile_shader_text(GL_VERTEX_SHADER, vstext);
-- 
1.7.6.4



More information about the Piglit mailing list