summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
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
parent33ffbd1c58dc8582f67d946f9eb26127e9851a10 (diff)
Fix minor warnings found with g++.
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_auxbuffer.c6
-rw-r--r--src/mesa/swrast/s_bitmap.c3
-rw-r--r--src/mesa/swrast/s_feedback.c5
3 files changed, 6 insertions, 8 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));
}
}
diff --git a/src/mesa/swrast/s_bitmap.c b/src/mesa/swrast/s_bitmap.c
index 6c8f515b626..8bd9854f0ca 100644
--- a/src/mesa/swrast/s_bitmap.c
+++ b/src/mesa/swrast/s_bitmap.c
@@ -54,7 +54,8 @@ _swrast_Bitmap( GLcontext *ctx, GLint px, GLint py,
ASSERT(ctx->RenderMode == GL_RENDER);
- bitmap = _swrast_validate_pbo_access(unpack, width, height, 1,
+ bitmap = (const GLubyte *) _swrast_validate_pbo_access(unpack, width,
+ height, 1,
GL_COLOR_INDEX, GL_BITMAP,
(GLvoid *) bitmap);
if (!bitmap) {
diff --git a/src/mesa/swrast/s_feedback.c b/src/mesa/swrast/s_feedback.c
index 2ebaaff3c19..892c40db6a2 100644
--- a/src/mesa/swrast/s_feedback.c
+++ b/src/mesa/swrast/s_feedback.c
@@ -51,7 +51,6 @@ static void feedback_vertex( GLcontext *ctx,
GLfloat win[4];
GLfloat color[4];
GLfloat tc[4];
- GLuint index;
win[0] = v->win[0];
win[1] = v->win[1];
@@ -75,9 +74,7 @@ static void feedback_vertex( GLcontext *ctx,
COPY_4V(tc, v->texcoord[texUnit]);
}
- index = v->index;
-
- _mesa_feedback_vertex( ctx, win, color, (GLfloat)index, tc );
+ _mesa_feedback_vertex( ctx, win, color, (GLfloat) v->index, tc );
}