From 714af087bfed09cff991334a56df363ce364f8c3 Mon Sep 17 00:00:00 2001 From: pierre Date: Tue, 1 Jun 2010 21:05:00 +0000 Subject: [PATCH] GL: Relax multisampling constraints on visual All visuals with parameter GLX_SAMPLE_BUFFERS_ARB = 0 have GLX_SAMPLES_ARB = 0, so the old code would only ever choose visuals with GLX_SAMPLE_BUFFERS_ARB>=1 and GLX_SAMPLES_ARB>=1. Some drivers do not export any multisampling capable visuals, so dolphin fails to find a matching visual and falls back to the single buffered visual(which does not work for some yet unknown reason). Fixes issue #2647. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5565 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp b/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp index 210fc2c140..9c9ae2c5cd 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp @@ -345,7 +345,9 @@ bool OpenGL_Create(SVideoInitialize &_VideoInitialize, int _iwidth, int _iheight GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, GLX_DEPTH_SIZE, 24, - GLX_SAMPLE_BUFFERS_ARB, g_Config.iMultisampleMode, GLX_SAMPLES_ARB, 1, None }; + GLX_SAMPLE_BUFFERS_ARB, g_Config.iMultisampleMode != MULTISAMPLE_OFF?1:0, + GLX_SAMPLES_ARB, g_Config.iMultisampleMode != MULTISAMPLE_OFF?1:0, + None }; int attrListDefault[] = { GLX_RGBA,