diff options
author | Daniel Borca <[email protected]> | 2004-11-12 10:23:10 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2004-11-12 10:23:10 +0000 |
commit | 885f10706a096037eea815803dbf4b4d28c3bd27 (patch) | |
tree | c5af8ac686584af75a5f272fb09f5fec4df2a530 /src/mesa/main/enable.c | |
parent | f37383c1c6a9cf83c556f2131fab1adef0efc17e (diff) |
added DD_TRI_TWOSTENCIL to ease EXT_stencil_two_side in device drivers
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 8d244e02e5b..f1ed98d4bb1 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -955,6 +955,11 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) return; FLUSH_VERTICES(ctx, _NEW_STENCIL); ctx->Stencil.TestTwoSide = state; + if (state) { + ctx->_TriangleCaps |= DD_TRI_TWOSTENCIL; + } else { + ctx->_TriangleCaps &= ~DD_TRI_TWOSTENCIL; + } break; #if FEATURE_ARB_fragment_program |