aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-12-16 00:19:12 +0000
committerBrian Paul <[email protected]>2000-12-16 00:19:12 +0000
commitf1d6b384415a083c358d3824e77f3d434f08bfcc (patch)
tree2ea0c83dfa3e2a4fe5c8f956191afc107895ae99 /src/mesa/main/state.c
parent74e2dd38ed2d4be3454683c3b3f6959738ef235a (diff)
Polygon._OffsetAny wasn't being computed
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 9ef01d4b54f..e5ca69ea614 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -1,4 +1,4 @@
-/* $Id: state.c,v 1.51 2000/12/08 00:20:15 brianp Exp $ */
+/* $Id: state.c,v 1.52 2000/12/16 00:19:12 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -524,12 +524,15 @@ update_polygon( GLcontext *ctx )
}
/* Any Polygon offsets enabled? */
+ ctx->Polygon._OffsetAny = GL_FALSE;
ctx->_TriangleCaps &= ~DD_TRI_OFFSET;
if (ctx->Polygon.OffsetPoint ||
ctx->Polygon.OffsetLine ||
- ctx->Polygon.OffsetFill)
+ ctx->Polygon.OffsetFill) {
ctx->_TriangleCaps |= DD_TRI_OFFSET;
+ ctx->Polygon._OffsetAny = GL_TRUE;
+ }
}
static void