Go back to using glGetString with GL_EXTENSIONS because glew 1.7 is required to check for newer 4.2 extensions that way.

This commit is contained in:
Ryan Houdek 2011-12-20 23:07:42 -06:00 committed by Sonicadvance1
parent ac77bbd47b
commit ef1e157786
1 changed files with 2 additions and 2 deletions

View File

@ -316,9 +316,9 @@ Renderer::Renderer()
s_bHaveCoverageMSAA = strstr(ptoken, "GL_NV_framebuffer_multisample_coverage") != NULL;
if (glewIsSupported("GL_ARB_shading_language_420pack"))
if (strstr((const char*)glGetString(GL_EXTENSIONS), "GL_ARB_shading_language_420pack") != NULL)
g_Config.backend_info.bSupportsGLSLBinding = true;
if (glewIsSupported("GL_ARB_uniform_buffer_object"))
if (strstr((const char*)glGetString(GL_EXTENSIONS), "GL_ARB_uniform_buffer_object") != NULL)
g_Config.backend_info.bSupportsGLSLUBO = true;
UpdateActiveConfig();