mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 23:58:59 +00:00
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:
parent
7ef5e5cd1e
commit
86944b5be2
1 changed files with 5 additions and 0 deletions
|
@ -293,6 +293,8 @@ void Flush()
|
||||||
// only update alpha
|
// only update alpha
|
||||||
glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE);
|
glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE);
|
||||||
|
|
||||||
|
glDisable(GL_BLEND);
|
||||||
|
|
||||||
groupStart = 0;
|
groupStart = 0;
|
||||||
for (unsigned i = 0; i < s_vertexGroups.size(); i++)
|
for (unsigned i = 0; i < s_vertexGroups.size(); i++)
|
||||||
{
|
{
|
||||||
|
@ -307,6 +309,9 @@ void Flush()
|
||||||
// restore color mask
|
// restore color mask
|
||||||
if (!bRestoreBuffers)
|
if (!bRestoreBuffers)
|
||||||
Renderer::SetColorMask();
|
Renderer::SetColorMask();
|
||||||
|
|
||||||
|
if (bpmem.blendmode.blendenable || bpmem.blendmode.subtract)
|
||||||
|
glEnable(GL_BLEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_DEBUG) || defined(DEBUGFAST)
|
#if defined(_DEBUG) || defined(DEBUGFAST)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue