From aa2e0a0113d72f2871687a17a9f784c4bef8e40e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 31 Jan 2003 18:19:58 +0000 Subject: [PATCH] cope with drivers advertising broken or really old extensions --- stepmania/src/RageDisplay.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index 163daa3ce4..e8f5818bc1 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -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; + } } }