cope with drivers advertising broken or really old extensions

This commit is contained in:
Glenn Maynard
2003-01-31 18:19:58 +00:00
parent 387a8c8fff
commit aa2e0a0113
+12 -3
View File
@@ -176,11 +176,20 @@ void RageDisplay::SetupExtensions()
/* Make sure we have all components for detected extensions. */
if(m_oglspecs->WGL_EXT_swap_control)
ASSERT(wglSwapIntervalEXT);
{
if(!wglSwapIntervalEXT)
{
LOG->Warn("wglSwapIntervalEXT but wglSwapIntervalEXT() not found");
m_oglspecs->WGL_EXT_swap_control=false;
}
}
if(m_oglspecs->EXT_paletted_texture)
{
ASSERT(glColorTableEXT);
ASSERT(glGetColorTableParameterivEXT);
if(!glColorTableEXT || !glGetColorTableParameterivEXT)
{
LOG->Warn("GL_EXT_paletted_texture but glColorTableEXT or glGetColorTableParameterivEXT not found");
m_oglspecs->EXT_paletted_texture = false;
}
}
}