else
auto_normal_flag = 0;
*/
+ glPushAttrib((GLbitfield) GL_EVAL_BIT);
- //NEWCALLBACK: no need to worry about gl states when gling clalback
}
else
{
bezierPatchMeshListDelete(global_bpm);
global_bpm = NULL;
#endif
-
+ glPopAttrib();
}
else
{
#ifndef USE_LOD
-glPopAttrib();
+ glPopAttrib();
#endif
#ifdef STATISTICS
REAL du, dv;
long i,j;
- long row;
if(global_grid_nu == 0 || global_grid_nv == 0)
return; /*no points need to be output*/
du = (global_grid_u1 - global_grid_u0) / (REAL)global_grid_nu;
}
-void
-OpenGLSurfaceEvaluator::putCallBack(GLenum which, _GLUfuncptr fn )
+#ifdef _WIN32
+void OpenGLSurfaceEvaluator::putCallBack(GLenum which, void (GLAPIENTRY *fn)() )
+#else
+void OpenGLSurfaceEvaluator::putCallBack(GLenum which, _GLUfuncptr fn )
+#endif
{
switch(which)
{