summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2009-07-15 07:10:45 +1000
committerDave Airlie <[email protected]>2009-07-15 08:19:34 +1000
commit681ede8836746735fbb904edf89b076343507a8b (patch)
tree6905b10d77d4782184269715aa26cdee07fbb194
parent99d07d0f91ddd37926d08f4e7f10d55cac28d9a7 (diff)
radeon: fix unsigned vs signed comparison in stencil code.
This function takes a GLint not a GLuint, passing in -1 breaks internally.
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common.c b/src/mesa/drivers/dri/radeon/radeon_common.c
index 08535180b8c..0a8d8b03e86 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common.c
@@ -1482,7 +1482,7 @@ void radeon_clear_tris(GLcontext *ctx, GLbitfield mask)
if (this_mask & BUFFER_BIT_STENCIL) {
_mesa_Enable(GL_STENCIL_TEST);
_mesa_StencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE);
- _mesa_StencilFuncSeparate(GL_FRONT_AND_BACK, GL_ALWAYS, ctx->Stencil.Clear,
+ _mesa_StencilFuncSeparate(GL_FRONT_AND_BACK, GL_ALWAYS, (GLint)ctx->Stencil.Clear,
ctx->Stencil.WriteMask[0]);
} else {
_mesa_Disable(GL_STENCIL_TEST);