Correct check for noop array state change (Raystonn)
authorAlan Hourihane <alanh@tungstengraphics.com>
Fri, 19 Apr 2002 08:38:23 +0000 (08:38 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Fri, 19 Apr 2002 08:38:23 +0000 (08:38 +0000)
src/mesa/main/enable.c

index b6402f95a24f85805ddbe37671bfd322833a85bc..78c200dcae441d28b37d9231eea8da2f17d0a972 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: enable.c,v 1.60 2002/04/19 00:23:08 brianp Exp $ */
+/* $Id: enable.c,v 1.61 2002/04/19 08:38:23 alanh Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -120,7 +120,7 @@ client_state( GLcontext *ctx, GLenum cap, GLboolean state )
          return;
    }
 
-   if (*var == flag)
+   if (*var == state)
       return;
 
    FLUSH_VERTICES(ctx, _NEW_ARRAY);