diff options
| author | NeoBrainX <NeoBrainX@googlemail.com> | 2011-09-07 21:12:17 +0200 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@googlemail.com> | 2011-09-07 21:15:14 +0200 |
| commit | 98b62d836290ff0ea46f73a6f6bdb0d3c91df923 (patch) | |
| tree | 1d4904f103fc25bfd1809c0597a6bd6032ed8b08 /Source/Core | |
| parent | 3939f9595a87393482df617465888f4ed46b6d94 (diff) | |
Track alpha blending paramaters in the pixel shader UID.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/VideoCommon/Src/PixelShaderGen.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp index 8bdfc3db28..46f139f105 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp @@ -170,6 +170,10 @@ void GetPixelShaderId(PIXELSHADERUID *uid, DSTALPHA_MODE dstAlphaMode) ptr += 4; // max: ptr = &uid->values[66]
}
+ ptr[0] |= bpmem.alphaFunc.comp0; // 3
+ ptr[0] |= bpmem.alphaFunc.comp1 << 3; // 3
+ ptr[0] |= bpmem.alphaFunc.logic << 6; // 2
+
if (alphaPreTest == 0 || alphaPreTest == 2)
{
ptr[0] |= bpmem.fog.c_proj_fsel.fsel << 8; // 3
|
