diff options
author | Brian Paul <[email protected]> | 2002-07-12 15:54:01 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-07-12 15:54:01 +0000 |
commit | f02a5f6cc55fc61229a038ac72edb3ce97cb6950 (patch) | |
tree | b3f3b47105dd5939751262bd880dc7821b435679 /progs/samples/nurb.c | |
parent | 902d2faadf37a5627ab2cbcd8993825c8749ec82 (diff) |
Pedantic compiler fixes (Sven Panne)
Diffstat (limited to 'progs/samples/nurb.c')
-rw-r--r-- | progs/samples/nurb.c | 4 |
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); |