Browse Source

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

tags/7.8-rc1
Francisco Jerez 15 years ago
parent
commit
91af398b32
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/mesa/drivers/dri/nouveau/nouveau_driver.c

+ 2
- 2
src/mesa/drivers/dri/nouveau/nouveau_driver.c View File

@@ -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);

Loading…
Cancel
Save