diff options
author | Brian Paul <[email protected]> | 2002-06-25 02:31:37 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-06-25 02:31:37 +0000 |
commit | 0c3f820bf069785723510f4ad2bf4b69ba7f72e0 (patch) | |
tree | 93be660c5efcfe518ddf1ef6dd6849ce682b1dd4 /src | |
parent | 4db3c48a138931db9db64d34d27b67378f7bf72c (diff) |
remove an unneeded statement in update_polygon(), added a comment
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/state.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 0f0db24d8e4..52cec5a0af3 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -1,4 +1,4 @@ -/* $Id: state.c,v 1.86 2002/06/16 01:14:22 brianp Exp $ */ +/* $Id: state.c,v 1.87 2002/06/25 02:31:37 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -522,6 +522,10 @@ _mesa_init_exec_table(struct _glapi_table *exec, GLuint tableSize) /**********************************************************************/ +/* + * Check polygon state and set DD_TRI_CULL_FRONT_BACK and/or DD_TRI_OFFSET + * in ctx->_TriangleCaps if needed. + */ static void update_polygon( GLcontext *ctx ) { @@ -532,8 +536,6 @@ 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) { |