summaryrefslogtreecommitdiff
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>1999-09-02 13:16:17 +0000
committerKeith Whitwell <keith@tungstengraphics.com>1999-09-02 13:16:17 +0000
commitb6e6937287eb92945e5e66db1c110861bf389085 (patch)
treefec680248c93d06c2b95135e7b371af00b7fcec2 /src/mesa/main/context.c
parenta4bb2ef30ef05c5ed2f9d3d95e2133ca6c227aa6 (diff)
fixed GL_FRONT_AND_BACK cull bug
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index e92a6ee99f..329cb33647 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1,4 +1,4 @@
-/* $Id: context.c,v 1.3 1999/08/29 10:26:31 keithw Exp $ */
+/* $Id: context.c,v 1.4 1999/09/02 13:16:17 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -2212,6 +2212,7 @@ void gl_update_state( GLcontext *ctx )
if (ctx->NewState & (NEW_POLYGON | NEW_LIGHTING)) {
+ ctx->TriangleCaps &= ~DD_TRI_CULL_FRONT_BACK;
if (ctx->NewState & NEW_POLYGON) {
/* Setup CullBits bitmask */
@@ -2231,7 +2232,8 @@ void gl_update_state( GLcontext *ctx )
default:
case GL_FRONT_AND_BACK:
ctx->backface_sign = 0;
- ctx->Polygon.CullBits = 3;
+ ctx->Polygon.CullBits = 0;
+ ctx->TriangleCaps |= DD_TRI_CULL_FRONT_BACK;
break;
}
}