Mesa (master): intel: Use FRONT_AND_BACK for StencilOp as well.
Eric Anholt
anholt at kemper.freedesktop.org
Thu May 14 18:43:45 UTC 2009
Module: Mesa
Branch: master
Commit: 64980125c76b05501a6fe7fe20fe52438f459129
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=64980125c76b05501a6fe7fe20fe52438f459129
Author: Eric Anholt <eric at anholt.net>
Date: Wed May 13 19:08:17 2009 -0700
intel: Use FRONT_AND_BACK for StencilOp as well.
---
src/mesa/drivers/dri/intel/intel_clear.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_clear.c b/src/mesa/drivers/dri/intel/intel_clear.c
index 488db2c..4dfaee8 100644
--- a/src/mesa/drivers/dri/intel/intel_clear.c
+++ b/src/mesa/drivers/dri/intel/intel_clear.c
@@ -255,7 +255,8 @@ intel_clear_tris(GLcontext *ctx, GLbitfield mask)
/* Control writing of the stencil clear value to stencil. */
if (this_mask & BUFFER_BIT_STENCIL) {
_mesa_Enable(GL_STENCIL_TEST);
- _mesa_StencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE);
+ _mesa_StencilOpSeparate(GL_FRONT_AND_BACK,
+ GL_REPLACE, GL_REPLACE, GL_REPLACE);
_mesa_StencilFuncSeparate(GL_FRONT_AND_BACK, GL_ALWAYS,
ctx->Stencil.Clear,
ctx->Stencil.WriteMask[0]);
More information about the mesa-commit
mailing list