Disable blending during destination alpha render pass.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2664 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
donkopunchstania 2009-03-16 05:24:51 +00:00
parent 7ef5e5cd1e
commit 86944b5be2
1 changed files with 5 additions and 0 deletions

View File

@ -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)