diff options
author | Brian Paul <[email protected]> | 2006-04-05 03:05:17 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-04-05 03:05:17 +0000 |
commit | 28b014ee256290eb0494b967e40c475c0c895f57 (patch) | |
tree | 9196b0a5fc1fbdd151ac80335e0517771c960998 /src/mesa/main/buffers.c | |
parent | 027bb77e02cf38c553d1396a348783ddc1b7913c (diff) |
Silence minor compiler warnings (-Wextra).
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r-- | src/mesa/main/buffers.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 */ |