Mercurial > sdl-ios-xcode
comparison src/video/wincommon/SDL_wingl.c @ 1757:ac282d472a2e
Yeah, that's what I meant. :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 01 May 2006 23:13:16 +0000 |
parents | c67921b517c3 |
children | 290b5baf2fca |
comparison
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") ) { |