src/video/wincommon/SDL_syswm.c
changeset 438 f9c5f135a8b9
parent 252 e8157fcb3114
child 439 3ac8344e3872
     1.1 --- a/src/video/wincommon/SDL_syswm.c	Sat Aug 17 17:21:04 2002 +0000
     1.2 +++ b/src/video/wincommon/SDL_syswm.c	Sat Aug 17 17:49:27 2002 +0000
     1.3 @@ -267,6 +267,16 @@
     1.4  {
     1.5  	if ( info->version.major <= SDL_MAJOR_VERSION ) {
     1.6  		info->window = SDL_Window;
     1.7 +		if ( SDL_VERSIONNUM(info->version.major,
     1.8 +		                    info->version.minor,
     1.9 +		                    info->version.patch) >=
    1.10 +		     SDL_VERSION(1, 2, 5) ) {
    1.11 +#ifdef HAVE_OPENGL
    1.12 +			info->hglrc = GL_hrc;
    1.13 +#else
    1.14 +			info->hglrc = NULL;
    1.15 +#endif
    1.16 +		}
    1.17  		return(1);
    1.18  	} else {
    1.19  		SDL_SetError("Application not compiled with SDL %d.%d\n",