From: John F. Fay Date: Mon, 14 Mar 2011 03:26:15 +0000 (+0000) Subject: Fixing a bug which set the "ErrorFunc" field in the call to "glutInitWarningFunc" X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=8833b224162c6e3c8491a89e77fcfd5f79bdff39;p=freeglut Fixing a bug which set the "ErrorFunc" field in the call to "glutInitWarningFunc" git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@896 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_init.c b/src/freeglut_init.c index 2cc19ea..877b3ab 100644 --- a/src/freeglut_init.c +++ b/src/freeglut_init.c @@ -1162,7 +1162,7 @@ void FGAPIENTRY glutInitErrorFunc( void (* vfgError) ( const char *fmt, va_list void FGAPIENTRY glutInitWarningFunc( void (* vfgWarning) ( const char *fmt, va_list ap ) ) { /* This allows user programs to handle freeglut warnings */ - fgState.ErrorFunc = vfgWarning; + fgState.WarningFunc = vfgWarning; } /*** END OF FILE ***/