From 3e8ba3f3e87bc4d9016e88613e14b4f14117d6ab Mon Sep 17 00:00:00 2001 From: degasus Date: Fri, 5 Apr 2013 07:08:32 +0200 Subject: [PATCH] fix msaa detection --- Source/Plugins/Plugin_VideoOGL/Src/Render.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index 0d5daaf9ec..7618c4771b 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -351,6 +351,8 @@ Renderer::Renderer() g_ogl_config.gl_version = (const char*)glGetString(GL_VERSION); glGetIntegerv(GL_MAX_SAMPLES, &g_ogl_config.max_samples); + if(g_ogl_config.max_samples < 1) + g_ogl_config.max_samples = 1; if(g_Config.backend_info.bSupportsGLSLUBO && ( // hd3000 get corruption, hd4000 also and a big slowdown