diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2006-05-08 09:03:35 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2006-05-08 09:03:35 +0000 |
commit | 71b2504e0390fa19f133647c8686d830f8f40eb6 (patch) | |
tree | 21b31e5e240f5bd83fa5b7d8a1907e4f6f6ecb3c /src/mesa/drivers/dri/sis/sis_stencil.c | |
parent | 960973b2ecfffc3b09563851e86c863e5304f48f (diff) | |
download | external_mesa3d-71b2504e0390fa19f133647c8686d830f8f40eb6.zip external_mesa3d-71b2504e0390fa19f133647c8686d830f8f40eb6.tar.gz external_mesa3d-71b2504e0390fa19f133647c8686d830f8f40eb6.tar.bz2 |
updates to dri drivers for recent stencil changes
Diffstat (limited to 'src/mesa/drivers/dri/sis/sis_stencil.c')
-rw-r--r-- | src/mesa/drivers/dri/sis/sis_stencil.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/sis/sis_stencil.c b/src/mesa/drivers/dri/sis/sis_stencil.c index 1febe86..a1ce296 100644 --- a/src/mesa/drivers/dri/sis/sis_stencil.c +++ b/src/mesa/drivers/dri/sis/sis_stencil.c @@ -45,8 +45,9 @@ sisDDStencilFuncSeparate( GLcontext * ctx, GLenum face, __GLSiSHardware *current = &smesa->current; /* set reference */ - current->hwStSetting = STENCIL_FORMAT_8 | (ctx->Stencil.Ref[0] << 8) | - ctx->Stencil.ValueMask[0]; + current->hwStSetting = (STENCIL_FORMAT_8 | + ((ctx->Stencil.Ref[0] & 0xff) << 8) | + (ctx->Stencil.ValueMask[0] & 0xff)); switch (func) { |