summaryrefslogtreecommitdiff
path: root/src/mesa/main/transformfeedback.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-09-01 14:46:22 -0700
committerEric Anholt <eric@anholt.net>2010-09-01 17:08:23 -0700
commit86af037e6a1643284f87c5e01c3fcb09dd07bf35 (patch)
tree6f6fa58ff73a01d6da27ffcab37ad96aaebae28e /src/mesa/main/transformfeedback.c
parent3cddc15d9dcf44a0998dd5f29ae6f6d17370584e (diff)
mesa: Fix many printf-like warnings.
Most of these are just typecasting to long to match the arg type. I don't really care too much about getting a GLsizei or whatever appropriate type in. However, there were a number of real bugs, like missing arguments or passing floats to integer format specifiers. My favorite: printflike("%s, argument") is missing an argument.
Diffstat (limited to 'src/mesa/main/transformfeedback.c')
-rw-r--r--src/mesa/main/transformfeedback.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index f86f1911d1..fe87623522 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -475,7 +475,8 @@ _mesa_BindBufferRange(GLenum target, GLuint index,
if (offset + size >= bufObj->Size) {
_mesa_error(ctx, GL_INVALID_VALUE,
- "glBindBufferRange(offset + size > buffer size)", size);
+ "glBindBufferRange(offset + size %d > buffer size %d)",
+ offset + size, bufObj->Size);
return;
}