From 1bf9dfaf5dea61e3d33a69b0a549be54ef6d74df Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Sat, 18 Sep 1999 20:41:22 +0000 Subject: Large patch: - FX bug fixes. - Polygon mode and edgeflag work properly. - Clipping works with edgeflag. - Driver.ReducedPrimitiveChange() callback so drivers that implement lines & points as triangles can turn culling off before rendering groups of these primitives. - Cleaned up feedback & select primitives. --- src/mesa/main/context.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/context.c') diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index f823ece47a..9b12ad0ede 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1,4 +1,4 @@ -/* $Id: context.c,v 1.7 1999/09/11 11:31:34 brianp Exp $ */ +/* $Id: context.c,v 1.8 1999/09/18 20:41:22 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -2082,8 +2082,13 @@ void gl_update_state( GLcontext *ctx ) ctx->Texture.Unit[1].LastEnvMode = ctx->Texture.Unit[1].EnvMode; } - if ((ctx->NewState & ~(NEW_CLIENT_STATE|NEW_TEXTURE_ENABLE)) == 0) + if ((ctx->NewState & ~(NEW_CLIENT_STATE|NEW_TEXTURE_ENABLE)) == 0) { + + if (MESA_VERBOSE&VERBOSE_STATE) + fprintf(stderr, "update_state: goto finished\n"); + goto finished; + } if (ctx->NewState & NEW_TEXTURE_MATRIX) { ctx->Enabled &= ~(ENABLE_TEXMAT0|ENABLE_TEXMAT1); -- cgit v1.2.3