From: Brian Paul Date: Fri, 16 Jun 2006 13:45:29 +0000 (+0000) Subject: glPush/PopAttrib fix (bug 6891) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0168fabed24e9089b47895475c7030925cbf399;p=mesa.git glPush/PopAttrib fix (bug 6891) --- diff --git a/src/glu/sgi/libnurbs/interface/glsurfeval.cc b/src/glu/sgi/libnurbs/interface/glsurfeval.cc index cb2cf8ee0be..a36b304508c 100644 --- a/src/glu/sgi/libnurbs/interface/glsurfeval.cc +++ b/src/glu/sgi/libnurbs/interface/glsurfeval.cc @@ -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