Added SDL_GL_ExtensionSupported()
Use GL_ARB_texture_rectangle in the OpenGL renderer, if supported. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401971
This commit is contained in:
parent
f4ac9ed70c
commit
c05ca3687f
4 changed files with 96 additions and 28 deletions
|
@ -196,7 +196,6 @@ WIN_GL_InitExtensions(_THIS)
|
|||
int pixel_format;
|
||||
HGLRC hglrc;
|
||||
const char *(WINAPI * wglGetExtensionsStringARB) (HDC) = 0;
|
||||
const GLubyte *(WINAPI * glGetStringFunc) (GLenum);
|
||||
const char *extensions;
|
||||
|
||||
hwnd =
|
||||
|
@ -241,14 +240,6 @@ WIN_GL_InitExtensions(_THIS)
|
|||
}
|
||||
}
|
||||
|
||||
glGetStringFunc = WIN_GL_GetProcAddress(_this, "glGetString");
|
||||
if (glGetStringFunc) {
|
||||
extensions = (const char *) glGetStringFunc(GL_EXTENSIONS);
|
||||
} else {
|
||||
/* Uh oh, something is seriously wrong here... */
|
||||
extensions = NULL;
|
||||
}
|
||||
|
||||
/* Check for WGL_EXT_swap_control */
|
||||
if (HasExtension("WGL_EXT_swap_control", extensions)) {
|
||||
_this->gl_data->wglSwapIntervalEXT =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue