projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
45a3b54
)
mesa: whitespace, 80-column wrapping in buffers.c
author
Brian Paul
<brianp@vmware.com>
Mon, 9 Jan 2012 18:07:23 +0000
(11:07 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 12 Jan 2012 16:23:55 +0000
(09:23 -0700)
src/mesa/main/buffers.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/buffers.c
b/src/mesa/main/buffers.c
index 46c785fc4dc28f076a90fc0efb80f8f37cd2d6c5..602dd32b3ee04f6b7b9b2e4508979b2681d248a7 100644
(file)
--- a/
src/mesa/main/buffers.c
+++ b/
src/mesa/main/buffers.c
@@
-51,7
+51,8
@@
* \return bitmask of BUFFER_BIT_* flags
*/
static GLbitfield
* \return bitmask of BUFFER_BIT_* flags
*/
static GLbitfield
-supported_buffer_bitmask(const struct gl_context *ctx, const struct gl_framebuffer *fb)
+supported_buffer_bitmask(const struct gl_context *ctx,
+ const struct gl_framebuffer *fb)
{
GLbitfield mask = 0x0;
{
GLbitfield mask = 0x0;
@@
-242,7
+243,8
@@
_mesa_DrawBuffer(GLenum buffer)
destMask = draw_buffer_enum_to_bitmask(buffer);
if (destMask == BAD_MASK) {
/* totally bogus buffer */
destMask = draw_buffer_enum_to_bitmask(buffer);
if (destMask == BAD_MASK) {
/* totally bogus buffer */
- _mesa_error(ctx, GL_INVALID_ENUM, "glDrawBuffer(buffer=0x%x)", buffer);
+ _mesa_error(ctx, GL_INVALID_ENUM,
+ "glDrawBuffer(buffer=0x%x)", buffer);
return;
}
destMask &= supportedMask;
return;
}
destMask &= supportedMask;
@@
-340,6
+342,7
@@
_mesa_DrawBuffersARB(GLsizei n, const GLenum *buffers)
ctx->Driver.DrawBuffer(ctx, n > 0 ? buffers[0] : GL_NONE);
}
ctx->Driver.DrawBuffer(ctx, n > 0 ? buffers[0] : GL_NONE);
}
+
/**
* Performs necessary state updates when _mesa_drawbuffers makes an
* actual change.
/**
* Performs necessary state updates when _mesa_drawbuffers makes an
* actual change.
@@
-361,6
+364,7
@@
updated_drawbuffers(struct gl_context *ctx)
#endif
}
#endif
}
+
/**
* Helper function to set the GL_DRAW_BUFFER state in the context and
* current FBO. Called via glDrawBuffer(), glDrawBuffersARB()
/**
* Helper function to set the GL_DRAW_BUFFER state in the context and
* current FBO. Called via glDrawBuffer(), glDrawBuffersARB()