From 86944b5be2835f20f96f78fb5f78325a86a9a580 Mon Sep 17 00:00:00 2001 From: donkopunchstania Date: Mon, 16 Mar 2009 05:24:51 +0000 Subject: [PATCH] Disable blending during destination alpha render pass. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2664 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp b/Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp index 93d6a95491..c532a344bc 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp @@ -293,6 +293,8 @@ void Flush() // only update alpha glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE); + glDisable(GL_BLEND); + groupStart = 0; for (unsigned i = 0; i < s_vertexGroups.size(); i++) { @@ -307,6 +309,9 @@ void Flush() // restore color mask if (!bRestoreBuffers) Renderer::SetColorMask(); + + if (bpmem.blendmode.blendenable || bpmem.blendmode.subtract) + glEnable(GL_BLEND); } #if defined(_DEBUG) || defined(DEBUGFAST)