From 28b014ee256290eb0494b967e40c475c0c895f57 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 5 Apr 2006 03:05:17 +0000 Subject: Silence minor compiler warnings (-Wextra). --- src/mesa/main/buffers.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/buffers.c') diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index 0d5d838ca0c..28fbc34ff78 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -193,10 +193,10 @@ static GLbitfield supported_buffer_bitmask(const GLcontext *ctx, GLuint framebufferID) { GLbitfield mask = 0x0; - GLint i; if (framebufferID > 0) { /* A user-created renderbuffer */ + GLuint i; ASSERT(ctx->Extensions.EXT_framebuffer_object); for (i = 0; i < ctx->Const.MaxColorAttachments; i++) { mask |= (BUFFER_BIT_COLOR0 << i); @@ -204,6 +204,7 @@ supported_buffer_bitmask(const GLcontext *ctx, GLuint framebufferID) } else { /* A window system renderbuffer */ + GLint i; mask = BUFFER_BIT_FRONT_LEFT; /* always have this */ if (ctx->Visual.stereoMode) { mask |= BUFFER_BIT_FRONT_RIGHT; @@ -485,11 +486,11 @@ set_color_output(GLcontext *ctx, GLuint output, GLenum buffer, * BUFFER_BIT_FRONT_LEFT | BUFFER_BIT_BACK_LEFT). */ void -_mesa_drawbuffers(GLcontext *ctx, GLsizei n, const GLenum *buffers, +_mesa_drawbuffers(GLcontext *ctx, GLuint n, const GLenum *buffers, const GLbitfield *destMask) { GLbitfield mask[MAX_DRAW_BUFFERS]; - GLint output; + GLuint output; if (!destMask) { /* compute destMask values now */ -- cgit v1.2.3