glPush/PopAttrib fix (bug 6891)
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 16 Jun 2006 13:45:29 +0000 (13:45 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 16 Jun 2006 13:45:29 +0000 (13:45 +0000)
src/glu/sgi/libnurbs/interface/glsurfeval.cc

index cb2cf8ee0be546929fbc11da3e33739d78323169..a36b304508c456bc08c8ea3eafb10832bd836672 100644 (file)
@@ -779,8 +779,8 @@ OpenGLSurfaceEvaluator::bgnmap2f(long)
       else
        auto_normal_flag = 0;
        */
+         glPushAttrib((GLbitfield) GL_EVAL_BIT);
 
-      //NEWCALLBACK: no need to worry about gl states when gling clalback
     }
   else
     {
@@ -842,12 +842,12 @@ OpenGLSurfaceEvaluator::endmap2f(void)
     bezierPatchMeshListDelete(global_bpm);
     global_bpm = NULL;
 #endif
-
+       glPopAttrib();
   }
 else
   {
 #ifndef USE_LOD
-glPopAttrib();
+    glPopAttrib();
 #endif
 
 #ifdef STATISTICS