aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2013-01-17 22:50:30 -0800
committerVinson Lee <vlee@freedesktop.org>2013-01-18 22:59:02 -0800
commit979760a19d4c61be40a62e003ced1f618bbc5942 (patch)
tree465c5744f1a9e75a5f06878d0d7cc660b51b1f3e
parentd3d50ed4c72c848d1a9e19428bdb37ba8a7bd7d8 (diff)
glsl-fs-color-matrix: Check result of piglit_link_check_status.
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--tests/shaders/glsl-fs-color-matrix.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/shaders/glsl-fs-color-matrix.c b/tests/shaders/glsl-fs-color-matrix.c
index 53f32c0b..302ce63e 100644
--- a/tests/shaders/glsl-fs-color-matrix.c
+++ b/tests/shaders/glsl-fs-color-matrix.c
@@ -130,6 +130,7 @@ piglit_init(int argc, char **argv)
GLuint vs;
GLuint fs;
GLint loc;
+ GLboolean ok;
piglit_require_GLSL();
@@ -141,7 +142,9 @@ piglit_init(int argc, char **argv)
glBindAttribLocation(prog, 1, "textureCoord");
glLinkProgram(prog);
- piglit_link_check_status(prog);
+ ok = piglit_link_check_status(prog);
+ if (!ok)
+ piglit_report_result(PIGLIT_FAIL);
glUseProgram(prog);