--- ../nurb.c 2010-08-07 14:25:54.000000000 +1000 +++ nurb.c 2010-08-06 23:59:33.000000000 +1000 @@ -27,6 +27,7 @@ #include #include #include +#include "local.h" #ifndef CALLBACK @@ -292,11 +293,14 @@ glRotatef(rotX, 0, 1, 0); glTranslatef(-4.0, -4.5, -2.5); +CALLLIST_BEGIN + gluBeginSurface(theNurbs); gluNurbsSurface(theNurbs, S_NUMKNOTS, sknots, T_NUMKNOTS, tknots, 4*T_NUMPOINTS, 4, &ctlpoints[0][0][0], S_ORDER, T_ORDER, GL_MAP2_VERTEX_4); gluEndSurface(theNurbs); +CALLLIST_END glPopMatrix();