aboutsummaryrefslogtreecommitdiff
path: root/tests/shaders
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2013-01-14 23:08:14 -0800
committerVinson Lee <vlee@freedesktop.org>2013-01-17 22:34:07 -0800
commit234d67c4cb0674bfa364f36e58ef8faa8bd01b18 (patch)
tree1ff831b03c6e42ff6f9dca2330c487228065d7f6 /tests/shaders
parente8f378e95315ad3920269eecb2e6c7c75fe58379 (diff)
downloadpiglit-234d67c4cb0674bfa364f36e58ef8faa8bd01b18.tar.gz
glsl-mat-attribute: Use result of link status check.
Fixes unchecked return value defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/shaders')
-rw-r--r--tests/shaders/glsl-mat-attribute.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/shaders/glsl-mat-attribute.c b/tests/shaders/glsl-mat-attribute.c
index adad0ed6..942c5995 100644
--- a/tests/shaders/glsl-mat-attribute.c
+++ b/tests/shaders/glsl-mat-attribute.c
@@ -212,6 +212,7 @@ void piglit_init(int argc, char **argv)
const char *sources[2];
GLint stat;
GLuint sh;
+ GLboolean ok;
sprintf(buf, "#define IDX %d\n", i);
@@ -238,7 +239,9 @@ void piglit_init(int argc, char **argv)
glBindAttribLocation(prog[i], 5, "normalization");
glLinkProgram(prog[i]);
- piglit_link_check_status(prog[i]);
+ ok = piglit_link_check_status(prog[i]);
+ if (!ok)
+ piglit_report_result(PIGLIT_FAIL);
}
glClearColor(0.3, 0.3, 0.3, 0.0);