always init ogl configs

This commit is contained in:
degasus 2013-01-21 18:44:33 +01:00
parent cf11f0ea72
commit da0ec6618f
1 changed files with 12 additions and 12 deletions

View File

@ -300,18 +300,18 @@ Renderer::Renderer()
s_bHaveCoverageMSAA = glewIsSupported("GL_NV_framebuffer_multisample_coverage"); s_bHaveCoverageMSAA = glewIsSupported("GL_NV_framebuffer_multisample_coverage");
if (glewIsSupported("GL_ARB_blend_func_extended")) g_Config.backend_info.bSupportsDualSourceBlend = glewIsSupported("GL_ARB_blend_func_extended");
g_Config.backend_info.bSupportsDualSourceBlend = true;
if (glewIsSupported("GL_ARB_uniform_buffer_object"))
g_Config.backend_info.bSupportsGLSLUBO = true;
if (glewIsSupported("GL_ARB_get_program_binary"))
g_Config.backend_info.bSupportsGLSLCache = false;//TODO: revert this after cache is fixed itself
UpdateActiveConfig(); g_Config.backend_info.bSupportsGLSLUBO = glewIsSupported("GL_ARB_uniform_buffer_object");
OSD::AddMessage(StringFromFormat("Supports Blending: %s UBOs: %s Cache: %s",
g_ActiveConfig.backend_info.bSupportsDualSourceBlend ? "True" : "False", //TODO: revert this after cache is fixed itself
g_ActiveConfig.backend_info.bSupportsGLSLUBO ? "True" : "False", g_Config.backend_info.bSupportsGLSLCache = false; // glewIsSupported("GL_ARB_get_program_binary")
g_ActiveConfig.backend_info.bSupportsGLSLCache ? "True" : "False").c_str(), 5000);
UpdateActiveConfig();
OSD::AddMessage(StringFromFormat("Supports Blending: %s UBOs: %s Cache: %s",
g_ActiveConfig.backend_info.bSupportsDualSourceBlend ? "True" : "False",
g_ActiveConfig.backend_info.bSupportsGLSLUBO ? "True" : "False",
g_ActiveConfig.backend_info.bSupportsGLSLCache ? "True" : "False").c_str(), 5000);
s_LastMultisampleMode = g_ActiveConfig.iMultisampleMode; s_LastMultisampleMode = g_ActiveConfig.iMultisampleMode;
s_MSAASamples = GetNumMSAASamples(s_LastMultisampleMode); s_MSAASamples = GetNumMSAASamples(s_LastMultisampleMode);