[Piglit] [PATCH] arb_texture_buffer_object-get: use piglit_get_gl_enum_name() in error msg
Brian Paul
brianp at vmware.com
Wed Jun 25 08:45:49 PDT 2014
---
tests/spec/arb_texture_buffer_object/get.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/spec/arb_texture_buffer_object/get.c b/tests/spec/arb_texture_buffer_object/get.c
index 202a909..d96a3c1 100644
--- a/tests/spec/arb_texture_buffer_object/get.c
+++ b/tests/spec/arb_texture_buffer_object/get.c
@@ -53,9 +53,11 @@ _expect(int line, GLenum token, GLint val)
glGetIntegerv(token, &ret);
if (ret != val) {
fprintf(stderr,
- "line %d: %s was %d, expected %d\n",
+ "line %d: %s was %s, expected %s\n",
line,
- piglit_get_gl_enum_name(token), ret, val);
+ piglit_get_gl_enum_name(token),
+ piglit_get_gl_enum_name(ret),
+ piglit_get_gl_enum_name(val));
return false;
}
--
1.7.10.4
More information about the Piglit
mailing list