DX9: Only enable dst alpha pass if the EFB format has an alpha channel.
Guess it would be better if we made bpmem.blendmode.alphaupdate private to prevent improper usage... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6932 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
66cd497dfe
commit
0371f15c23
|
@ -173,7 +173,9 @@ void VertexManager::vFlush()
|
||||||
|
|
||||||
Draw(stride);
|
Draw(stride);
|
||||||
|
|
||||||
if (bpmem.dstalpha.enable && bpmem.blendmode.alphaupdate)
|
bool useDstAlpha = bpmem.dstalpha.enable && bpmem.blendmode.alphaupdate &&
|
||||||
|
bpmem.zcontrol.pixel_format == PIXELFMT_RGBA6_Z24;
|
||||||
|
if (useDstAlpha)
|
||||||
{
|
{
|
||||||
DWORD write = 0;
|
DWORD write = 0;
|
||||||
if (!PixelShaderCache::SetShader(DSTALPHA_ALPHA_PASS, g_nativeVertexFmt->m_components))
|
if (!PixelShaderCache::SetShader(DSTALPHA_ALPHA_PASS, g_nativeVertexFmt->m_components))
|
||||||
|
|
Loading…
Reference in New Issue