[Piglit] [PATCH] shader_runner: program must be in use for vertex data upload

Jordan Justen jordan.l.justen at intel.com
Mon Mar 25 10:47:36 PDT 2013


If the shader_test wants to upload vertex data, then we make
sure the program linked and is in use. If not, then the test
will fail.

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 tests/shaders/shader_runner.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 5b084cb..78385af 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1970,6 +1970,7 @@ piglit_init(int argc, char **argv)
 	process_test_script(argv[1]);
 	link_and_use_shaders();
 	if (vertex_data_start != NULL) {
+		program_must_be_in_use();
 		if (gl_version.num >= 31) {
 			GLuint vao;
 
-- 
1.7.10.4



More information about the Piglit mailing list