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 <[email protected]>
---
 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

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to