diff options
Diffstat (limited to 'progs/samples/quad.c')
-rw-r--r-- | progs/samples/quad.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/progs/samples/quad.c b/progs/samples/quad.c index 8dec28b6bb..5b721a4452 100644 --- a/progs/samples/quad.c +++ b/progs/samples/quad.c @@ -102,6 +102,8 @@ static void CALLBACK ErrorHandler(GLenum which) fprintf(stderr, "Quad Error: %s\n", gluErrorString(which)); } +typedef void (GLAPIENTRY *callback_t)(); + static void Init(void) { static GLint colorIndexes[3] = {0, 200, 255}; @@ -163,7 +165,7 @@ static void Init(void) } quadObj = gluNewQuadric(); - gluQuadricCallback(quadObj, GLU_ERROR, ErrorHandler); + gluQuadricCallback(quadObj, GLU_ERROR, (callback_t) ErrorHandler); radius1 = 10; radius2 = 5; |