diff options
author | Brian Paul <brianp@vmware.com> | 2010-03-24 08:16:25 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-03-24 08:16:27 -0600 |
commit | f66d70b930e2a5026b0d6d7bdb047a2a78a10d7a (patch) | |
tree | bec8d56c5d8d23428af8123006a64e4159709b45 | |
parent | 99386921e778271c9b3edf90123ab6319e23fc95 (diff) | |
download | external_mesa3d-f66d70b930e2a5026b0d6d7bdb047a2a78a10d7a.zip external_mesa3d-f66d70b930e2a5026b0d6d7bdb047a2a78a10d7a.tar.gz external_mesa3d-f66d70b930e2a5026b0d6d7bdb047a2a78a10d7a.tar.bz2 |
st/mesa: return GL_TRUE/GL_FALSE if return type is GLboolean
Just to be consistent.
-rw-r--r-- | src/mesa/state_tracker/st_cb_clear.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c index de86062..2777505 100644 --- a/src/mesa/state_tracker/st_cb_clear.c +++ b/src/mesa/state_tracker/st_cb_clear.c @@ -316,15 +316,15 @@ check_clear_color_with_quad(GLcontext *ctx, struct gl_renderbuffer *rb) ctx->Scissor.Y != 0 || ctx->Scissor.Width < rb->Width || ctx->Scissor.Height < rb->Height)) - return TRUE; + return GL_TRUE; if (!ctx->Color.ColorMask[0][0] || !ctx->Color.ColorMask[0][1] || !ctx->Color.ColorMask[0][2] || !ctx->Color.ColorMask[0][3]) - return TRUE; + return GL_TRUE; - return FALSE; + return GL_FALSE; } @@ -344,12 +344,12 @@ check_clear_depth_stencil_with_quad(GLcontext *ctx, struct gl_renderbuffer *rb) ctx->Scissor.Y != 0 || ctx->Scissor.Width < rb->Width || ctx->Scissor.Height < rb->Height)) - return TRUE; + return GL_TRUE; if (maskStencil) - return TRUE; + return GL_TRUE; - return FALSE; + return GL_FALSE; } @@ -367,13 +367,13 @@ check_clear_depth_with_quad(GLcontext *ctx, struct gl_renderbuffer *rb) ctx->Scissor.Y != 0 || ctx->Scissor.Width < rb->Width || ctx->Scissor.Height < rb->Height)) - return TRUE; + return GL_TRUE; if (isDS && ctx->DrawBuffer->Visual.stencilBits > 0) - return TRUE; + return GL_TRUE; - return FALSE; + return GL_FALSE; } @@ -394,14 +394,14 @@ check_clear_stencil_with_quad(GLcontext *ctx, struct gl_renderbuffer *rb) rb->Format == MESA_FORMAT_S8_Z24); if (maskStencil) - return TRUE; + return GL_TRUE; if (ctx->Scissor.Enabled && (ctx->Scissor.X != 0 || ctx->Scissor.Y != 0 || ctx->Scissor.Width < rb->Width || ctx->Scissor.Height < rb->Height)) - return TRUE; + return GL_TRUE; /* This is correct, but it is necessary to look at the depth clear * value held in the surface when it comes time to issue the clear, @@ -410,9 +410,9 @@ check_clear_stencil_with_quad(GLcontext *ctx, struct gl_renderbuffer *rb) */ if (isDS && ctx->DrawBuffer->Visual.depthBits > 0) - return TRUE; + return GL_TRUE; - return FALSE; + return GL_FALSE; } @@ -430,8 +430,6 @@ void st_flush_clear( struct st_context *st ) /** * Called via ctx->Driver.Clear() - * XXX: doesn't pick up the differences between front/back/left/right - * clears. Need to sort that out... */ static void st_clear(GLcontext *ctx, GLbitfield mask) { |