mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
dstalpha should is not used to blend fragments. commenting out code fixed missing menu in Metroid Prime, but a proper solution is needed.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@932 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -427,10 +427,14 @@ char *GeneratePixelShader(u32 texture_mask, bool has_zbuffer_target, bool bRende
|
||||
}
|
||||
else {
|
||||
if (!bRenderZToCol0) {
|
||||
if (bpmem.dstalpha.enable)
|
||||
/* NEEDS FIX - dstalpha does not change how fragments are blended with the EFB
|
||||
once the blending is done, the dstalpha is written to the EFB in place of the
|
||||
fragment alpha if dstalpha is enabled. this only matters if the EFB supports alpha.
|
||||
if (bpmem.dstalpha.enable)
|
||||
WRITE(p, " ocol0 = float4(prev.rgb,"I_ALPHA"[0].w);\n");
|
||||
else
|
||||
WRITE(p, " ocol0 = prev;\n");
|
||||
else*/
|
||||
|
||||
WRITE(p, " ocol0 = prev;\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user