X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmswin%2Ffreeglut_init_mswin.c;h=c7457de96cc4266c9981ef8c113198c424b12eec;hb=c5b343fbd61bdd4946f2e076e9f37223975a66ee;hp=568170e115864d629baacaa4c326ca69f6610058;hpb=eadfac5750a4b83b7054b528006d9abb2fa5696f;p=freeglut diff --git a/src/mswin/freeglut_init_mswin.c b/src/mswin/freeglut_init_mswin.c index 568170e..c7457de 100644 --- a/src/mswin/freeglut_init_mswin.c +++ b/src/mswin/freeglut_init_mswin.c @@ -25,6 +25,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#define FREEGLUT_BUILDING_LIB #include #include "../Common/freeglut_internal.h" @@ -157,7 +158,10 @@ void fgPlatformCloseDisplay ( void ) timeEndPeriod ( 1 ); } - +void fgPlatformDestroyContext ( SFG_PlatformDisplay pDisplay, SFG_WindowContextType MContext ) +{ + /* Do nothing -- this is required for X11 */ +} /* * Everything down to the end of the next two functions is copied from the X sources. @@ -331,7 +335,6 @@ int XParseGeometry ( /* -- PLATFORM-SPECIFIC INTERFACE FUNCTION -------------------------------------------------- */ - void (__cdecl *__glutExitFunc)( int return_value ) = NULL; void FGAPIENTRY __glutInitWithExit( int *pargc, char **argv, void (__cdecl *exit_function)(int) )