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

Jordan Justen jordan.l.justen at intel.com
Fri Apr 19 12:05:50 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 9089f09..845e4ba 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1985,6 +1985,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