src/video/wincommon/SDL_wingl.c
changeset 1757 ac282d472a2e
parent 1754 c67921b517c3
child 1769 290b5baf2fca
equal deleted inserted replaced
1756:eed7a3f396ce 1757:ac282d472a2e
   339 	 * somewhat a documented and reliable hack - it was originally
   339 	 * somewhat a documented and reliable hack - it was originally
   340 	 * as a feature added by mistake, but since so many people rely
   340 	 * as a feature added by mistake, but since so many people rely
   341 	 * on it, it will not be removed.  strstr should be safe here.*/
   341 	 * on it, it will not be removed.  strstr should be safe here.*/
   342 	glGetStringFunc = WIN_GL_GetProcAddress(this, "glGetString");
   342 	glGetStringFunc = WIN_GL_GetProcAddress(this, "glGetString");
   343 	if ( glGetStringFunc ) {
   343 	if ( glGetStringFunc ) {
   344 		wglext = (const char *)this->glGetString(GL_EXTENSIONS);
   344 		wglext = (const char *)glGetStringFunc(GL_EXTENSIONS);
   345 	} else {
   345 	} else {
   346 		/* Uh oh, something is seriously wrong here... */
   346 		/* Uh oh, something is seriously wrong here... */
   347 		wglext = NULL;
   347 		wglext = NULL;
   348 	}
   348 	}
   349 	if ( !wglext || !SDL_strstr(wglext, "WGL_EXT_swap_control") ) {
   349 	if ( !wglext || !SDL_strstr(wglext, "WGL_EXT_swap_control") ) {