glPush/PopAttrib fix (bug 6891)

This commit is contained in:
Brian Paul 2006-06-16 13:45:29 +00:00
parent 65897c04c8
commit c0168fabed

View 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