From: Francisco Jerez Date: Sun, 21 Feb 2010 13:28:17 +0000 (+0100) Subject: dri/nouveau: Fix stencil mask handling on glClear(). X-Git-Tag: 062012170305~12852^2~548 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91af398b32f0f63a1560fe023651be0861c08f8a;p=profile%2Fivi%2Fmesa.git dri/nouveau: Fix stencil mask handling on glClear(). --- 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);