diff options
Diffstat (limited to 'src/mesa/swrast/s_auxbuffer.c')
-rw-r--r-- | src/mesa/swrast/s_auxbuffer.c | 6 |
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)); } } |