summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-10-05 23:10:35 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-10-05 23:10:35 +0000
commitb34a9dab57896266e89a355d25b52b8aae874098 (patch)
tree11bdfae52b7764aee9d40264dfb0b5bf6afd34bc
parent7a13c836633485acb1cdf38e297eb85052071f55 (diff)
update TriangleCaps in GL_POINT/POLYGON_SMOOTH cases
-rw-r--r--src/mesa/main/enable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 0fa408f7644..46edd625a95 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -1,4 +1,4 @@
-/* $Id: enable.c,v 1.21 2000/05/23 15:17:12 brianp Exp $ */
+/* $Id: enable.c,v 1.21.4.1 2000/10/05 23:10:35 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -285,12 +285,14 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state )
case GL_POINT_SMOOTH:
if (ctx->Point.SmoothFlag!=state) {
ctx->Point.SmoothFlag = state;
+ ctx->TriangleCaps ^= DD_POINT_SMOOTH;
ctx->NewState |= NEW_RASTER_OPS;
}
break;
case GL_POLYGON_SMOOTH:
if (ctx->Polygon.SmoothFlag!=state) {
ctx->Polygon.SmoothFlag = state;
+ ctx->TriangleCaps ^= DD_TRI_SMOOTH;
ctx->NewState |= NEW_RASTER_OPS;
}
break;