summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-01-21 16:29:10 -0700
committerBrian Paul <brianp@vmware.com>2009-01-21 16:29:10 -0700
commit10076f2f307d1668a35bf6440600bf3fa3084349 (patch)
tree1d8bb219fdb14611674587149aafaebf0ab4b5e5
parent8f541bf60fdeaecd745b8d402f1d5ccced09a384 (diff)
i965: minor reformatting
-rw-r--r--src/mesa/drivers/dri/intel/intel_buffers.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_buffers.c b/src/mesa/drivers/dri/intel/intel_buffers.c
index 4d036dee42..3519eff911 100644
--- a/src/mesa/drivers/dri/intel/intel_buffers.c
+++ b/src/mesa/drivers/dri/intel/intel_buffers.c
@@ -818,7 +818,7 @@ intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
return;
}
- /* Do this here, note core Mesa, since this function is called from
+ /* Do this here, not core Mesa, since this function is called from
* many places within the driver.
*/
if (ctx->NewState & (_NEW_BUFFERS | _NEW_COLOR | _NEW_PIXEL)) {
@@ -846,7 +846,8 @@ intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
/* writing to 0 */
colorRegions[0] = NULL;
intel->constant_cliprect = GL_TRUE;
- } else if (fb->_NumColorDrawBuffers > 1) {
+ }
+ else if (fb->_NumColorDrawBuffers > 1) {
int i;
struct intel_renderbuffer *irb;
@@ -959,10 +960,12 @@ intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
if (ctx->Driver.Enable) {
if (ctx->Depth.Test && fb->Visual.depthBits > 0) {
ctx->Driver.Enable(ctx, GL_DEPTH_TEST, GL_TRUE);
- } else {
+ }
+ else {
ctx->Driver.Enable(ctx, GL_DEPTH_TEST, GL_FALSE);
}
- } else {
+ }
+ else {
ctx->NewState |= _NEW_DEPTH;
}
@@ -973,7 +976,8 @@ intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
if (ctx->Driver.Viewport) {
ctx->Driver.Viewport(ctx, ctx->Viewport.X, ctx->Viewport.Y,
ctx->Viewport.Width, ctx->Viewport.Height);
- } else {
+ }
+ else {
ctx->NewState |= _NEW_VIEWPORT;
}