diff --git a/freeglut/freeglut/freeglut-1.3/freeglut_init.c b/freeglut/freeglut/freeglut-1.3/freeglut_init.c index 2b47456..720fb69 100644 --- a/freeglut/freeglut/freeglut-1.3/freeglut_init.c +++ b/freeglut/freeglut/freeglut-1.3/freeglut_init.c @@ -366,6 +366,11 @@ void FGAPIENTRY glutInit( int* pargc, char** argv ) * Grab the environment variable indicating the X display to use. * This is harmless under Win32, so let's let it stay here... */ +#if TARGET_HOST_WIN32 + if ( !getenv( "DISPLAY" ) ) + displayName = strdup( "" ); + else +#endif displayName = strdup( getenv( "DISPLAY" ) ); /*