diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2000-10-05 23:10:42 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2000-10-05 23:10:42 +0000 |
commit | 1791901468a4eea3cc1a9c9f3a6c4913ff8a35eb (patch) | |
tree | 549b77f032386fca1e507d24014f6f9c3533eb21 /src/mesa/main/enable.c | |
parent | fdf2033bdae7279f4c36b1fab05ef36a656d4395 (diff) |
update TriangleCaps in GL_POINT/POLYGON_SMOOTH cases
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 67cf170689..0adf0f5522 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1,4 +1,4 @@ -/* $Id: enable.c,v 1.24 2000/09/26 20:53:53 brianp Exp $ */ +/* $Id: enable.c,v 1.25 2000/10/05 23:10:42 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -290,12 +290,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; |