From da0ec6618fe7a447cf9f5d443b9ad856e578451a Mon Sep 17 00:00:00 2001 From: degasus Date: Mon, 21 Jan 2013 18:44:33 +0100 Subject: [PATCH] always init ogl configs --- Source/Plugins/Plugin_VideoOGL/Src/Render.cpp | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index 8183f3ea43..8a79cc69fd 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -299,19 +299,19 @@ Renderer::Renderer() } s_bHaveCoverageMSAA = glewIsSupported("GL_NV_framebuffer_multisample_coverage"); + + g_Config.backend_info.bSupportsDualSourceBlend = glewIsSupported("GL_ARB_blend_func_extended"); + + g_Config.backend_info.bSupportsGLSLUBO = glewIsSupported("GL_ARB_uniform_buffer_object"); + + //TODO: revert this after cache is fixed itself + g_Config.backend_info.bSupportsGLSLCache = false; // glewIsSupported("GL_ARB_get_program_binary") - if (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(); - 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); + 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_MSAASamples = GetNumMSAASamples(s_LastMultisampleMode);