projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99d07d0
)
radeon: fix unsigned vs signed comparison in stencil code.
author
Dave Airlie
<airlied@redhat.com>
Tue, 14 Jul 2009 21:10:45 +0000
(07:10 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 14 Jul 2009 22:19:34 +0000
(08:19 +1000)
This function takes a GLint not a GLuint, passing in -1
breaks internally.
src/mesa/drivers/dri/radeon/radeon_common.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_common.c
b/src/mesa/drivers/dri/radeon/radeon_common.c
index 08535180b8cf22d18a486b9d48b77b0141ddfcf2..0a8d8b03e86a151458ba29fd17448ffeb4f61274 100644
(file)
--- 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);