summaryrefslogtreecommitdiff
path: root/tests/bugs
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-11-10 23:31:21 -0800
committerVinson Lee <vlee@vmware.com>2010-11-10 23:31:21 -0800
commit02f7e1353b69bf787b0b2b65476bafc406f22049 (patch)
treeda3d1c5ca624150a273c4897ae2a2dc4265c6c13 /tests/bugs
parenta289b5773d4a8bb113b9798e32316047a4d2471d (diff)
fdo28551: Print out GL error on failure.
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/fdo28551.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/bugs/fdo28551.c b/tests/bugs/fdo28551.c
index f65c44873..524337ddc 100644
--- a/tests/bugs/fdo28551.c
+++ b/tests/bugs/fdo28551.c
@@ -41,6 +41,7 @@ enum piglit_result
piglit_display(void)
{
GLint red_bits;
+ GLenum err;
glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER,
GL_BACK_LEFT,
@@ -49,8 +50,11 @@ piglit_display(void)
printf("Red bits: %d\n", red_bits);
- if (glGetError())
+ err = glGetError();
+ if (err) {
+ printf("glGetFramebufferAttachmentParameteriv GL error: 0x%x\n", err);
return PIGLIT_FAILURE;
+ }
return PIGLIT_SUCCESS;
}