mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Merge pull request #7359 from stenzek/intel-d3d-crash
PixelShaderGen: Ensure all components of ocol1 are initialized
This commit is contained in:
commit
db55c36f09
1 changed files with 2 additions and 2 deletions
|
@ -1406,13 +1406,13 @@ static void WriteColor(ShaderCode& out, APIType api_type, const pixel_shader_uid
|
||||||
|
|
||||||
// Use dual-source color blending to perform dst alpha in a single pass
|
// Use dual-source color blending to perform dst alpha in a single pass
|
||||||
if (use_dual_source)
|
if (use_dual_source)
|
||||||
out.Write("\tocol1.a = float(prev.a) / 255.0;\n");
|
out.Write("\tocol1 = float4(0.0, 0.0, 0.0, float(prev.a) / 255.0);\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
out.Write("\tocol0.a = float(prev.a >> 2) / 63.0;\n");
|
out.Write("\tocol0.a = float(prev.a >> 2) / 63.0;\n");
|
||||||
if (use_dual_source)
|
if (use_dual_source)
|
||||||
out.Write("\tocol1.a = float(prev.a) / 255.0;\n");
|
out.Write("\tocol1 = float4(0.0, 0.0, 0.0, float(prev.a) / 255.0);\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue