summaryrefslogtreecommitdiff
path: root/progs/samples/nurb.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/samples/nurb.c')
-rw-r--r--progs/samples/nurb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/progs/samples/nurb.c b/progs/samples/nurb.c
index f90c6ee91f..dc8991295e 100644
--- a/progs/samples/nurb.c
+++ b/progs/samples/nurb.c
@@ -216,11 +216,13 @@ static void CALLBACK ErrorCallback(GLenum which)
}
}
+typedef void (GLAPIENTRY *callback_t)();
+
static void Init(void)
{
theNurbs = gluNewNurbsRenderer();
- gluNurbsCallback(theNurbs, GLU_ERROR, ErrorCallback);
+ gluNurbsCallback(theNurbs, GLU_ERROR, (callback_t) ErrorCallback);
gluNurbsProperty(theNurbs, GLU_SAMPLING_TOLERANCE, 15.0);
gluNurbsProperty(theNurbs, GLU_DISPLAY_MODE, GLU_OUTLINE_PATCH);