aboutsummaryrefslogtreecommitdiffstats
path: root/src/glu/sgi
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-06-16 13:45:29 +0000
committerBrian Paul <[email protected]>2006-06-16 13:45:29 +0000
commitc0168fabed24e9089b47895475c7030925cbf399 (patch)
tree3433a038f5ca03f76f16a2497dce8b727a11d8b0 /src/glu/sgi
parent65897c04c870dcb20126cc564f0f70224c2049be (diff)
glPush/PopAttrib fix (bug 6891)
Diffstat (limited to 'src/glu/sgi')
-rw-r--r--src/glu/sgi/libnurbs/interface/glsurfeval.cc6
1 files changed, 3 insertions, 3 deletions
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