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