summaryrefslogtreecommitdiffstats
path: root/progs/samples/nurb.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-07-12 15:54:01 +0000
committerBrian Paul <[email protected]>2002-07-12 15:54:01 +0000
commitf02a5f6cc55fc61229a038ac72edb3ce97cb6950 (patch)
treeb3f3b47105dd5939751262bd880dc7821b435679 /progs/samples/nurb.c
parent902d2faadf37a5627ab2cbcd8993825c8749ec82 (diff)
Pedantic compiler fixes (Sven Panne)
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 f90c6ee91f6..dc8991295e8 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);