Module: Mesa
Branch: master
Commit: 91af398b32f0f63a1560fe023651be0861c08f8a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=91af398b32f0f63a1560fe023651be0861c08f8a

Author: Francisco Jerez <curroje...@riseup.net>
Date:   Sun Feb 21 14:28:17 2010 +0100

dri/nouveau: Fix stencil mask handling on glClear().

---

 src/mesa/drivers/dri/nouveau/nouveau_driver.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/nouveau/nouveau_driver.c 
b/src/mesa/drivers/dri/nouveau/nouveau_driver.c
index bf0e20c..afaa8de 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_driver.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_driver.c
@@ -112,8 +112,8 @@ nouveau_clear(GLcontext *ctx, GLbitfield buffers)
                        mask = pack_zs_i(s->format,
                                         (buffers & BUFFER_BIT_DEPTH &&
                                          ctx->Depth.Mask) ? ~0 : 0,
-                                        (buffers & BUFFER_BIT_STENCIL &&
-                                         ctx->Stencil.WriteMask[0]) ? ~0 : 0);
+                                        (buffers & BUFFER_BIT_STENCIL ?
+                                         ctx->Stencil.WriteMask[0] : 0));
                        value = pack_zs_f(s->format,
                                          ctx->Depth.Clear,
                                          ctx->Stencil.Clear);

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to