aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_auxbuffer.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-05-04 15:11:06 +0000
committerBrian Paul <[email protected]>2004-05-04 15:11:06 +0000
commitbdd15b5749b45929fa642c3e47997f52eb07fbe5 (patch)
tree103b77f6cd3e845f0816092a7e21a57ec6f98a2c /src/mesa/swrast/s_auxbuffer.c
parent33ffbd1c58dc8582f67d946f9eb26127e9851a10 (diff)
Fix minor warnings found with g++.
Diffstat (limited to 'src/mesa/swrast/s_auxbuffer.c')
-rw-r--r--src/mesa/swrast/s_auxbuffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_auxbuffer.c b/src/mesa/swrast/s_auxbuffer.c
index ca36d90ded8..859bc3197bd 100644
--- a/src/mesa/swrast/s_auxbuffer.c
+++ b/src/mesa/swrast/s_auxbuffer.c
@@ -34,7 +34,7 @@
void
_swrast_alloc_aux_buffers( GLframebuffer *buffer )
{
- GLuint i;
+ GLint i;
for (i = 0; i < buffer->Visual.numAuxBuffers; i++) {
if (buffer->AuxBuffers[i]) {
@@ -42,8 +42,8 @@ _swrast_alloc_aux_buffers( GLframebuffer *buffer )
buffer->AuxBuffers[i] = NULL;
}
- buffer->AuxBuffers[i] = _mesa_malloc(buffer->Width * buffer->Height
- * 4 * sizeof(GLchan));
+ buffer->AuxBuffers[i] = (GLchan *) _mesa_malloc(buffer->Width
+ * buffer->Height * 4 * sizeof(GLchan));
}
}