summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/transformfeedback.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-09-02 07:57:16 -0600
committerBrian Paul <[email protected]>2010-09-02 07:57:16 -0600
commit9eca0e2c3e9409b5da49d9a5052d3665e7d45bb1 (patch)
tree565b43306790b05938d33c7b4ce8552d5c199793 /src/mesa/main/transformfeedback.c
parent5d5f693cefe452bd8bd7e45f8b5d7ed991ae5115 (diff)
mesa: fix some printf warnings with casts
Diffstat (limited to 'src/mesa/main/transformfeedback.c')
-rw-r--r--src/mesa/main/transformfeedback.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index fe876235222..5c8c1fd225f 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -455,14 +455,14 @@ _mesa_BindBufferRange(GLenum target, GLuint index,
if ((size <= 0) || (size & 0x3)) {
/* must be positive and multiple of four */
- _mesa_error(ctx, GL_INVALID_VALUE, "glBindBufferRange(size%d)", size);
+ _mesa_error(ctx, GL_INVALID_VALUE, "glBindBufferRange(size%d)", (int) size);
return;
}
if (offset & 0x3) {
/* must be multiple of four */
_mesa_error(ctx, GL_INVALID_VALUE,
- "glBindBufferRange(offset=%d)", offset);
+ "glBindBufferRange(offset=%d)", (int) offset);
return;
}
@@ -476,7 +476,7 @@ _mesa_BindBufferRange(GLenum target, GLuint index,
if (offset + size >= bufObj->Size) {
_mesa_error(ctx, GL_INVALID_VALUE,
"glBindBufferRange(offset + size %d > buffer size %d)",
- offset + size, bufObj->Size);
+ (int) (offset + size), (int) (bufObj->Size));
return;
}