diff options
author | David Nusinow <[email protected]> | 2006-09-24 21:11:46 +0000 |
---|---|---|
committer | David Nusinow <[email protected]> | 2006-09-24 21:11:46 +0000 |
commit | eadb76b3f8e0e9b82da762bd29e53895bf9e6351 (patch) | |
tree | b9f68fc763f9ea055287c366e61de84191b200ce /src/mesa/main/buffers.c | |
parent | b3f7313ae4f4cd418522595e90e7d06ef6992f0a (diff) |
Bump to latest mesa in Debian
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 */ |