X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=freeglut-1.3%2Ffreeglut_init.c;h=720fb69888f3d7b01c093764a852d14a2751a35b;hb=19ac41b4392cee221c884511c0495d9d425a381e;hp=2b47456e6a24212193f34003b28b8066e1cc61ef;hpb=4cbd17afbe35bedeb376b1dde7730c5a19052802;p=freeglut diff --git a/freeglut-1.3/freeglut_init.c b/freeglut-1.3/freeglut_init.c index 2b47456..720fb69 100644 --- a/freeglut-1.3/freeglut_init.c +++ b/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" ) ); /*