diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2016-06-26 13:37:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-26 13:37:15 +0200 |
| commit | 6b01eca3a07bd8f7e1a14c6c1eb10eee6ce01c4d (patch) | |
| tree | 36ced8825749852b9bb1518b99071419f2bb202c /Source/Core/VideoCommon/PixelShaderGen.cpp | |
| parent | 3887328bbaf43320b22ef2ca4ade325c23789d0f (diff) | |
| parent | d958388617fe16cc44b385658a4e44dfc9ae39e7 (diff) | |
Merge pull request #3950 from phire/fix-warnings
VideoCommon: Fix some warnings.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderGen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index a94cd02c15..61802c2718 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -1016,10 +1016,10 @@ static void WriteStage(ShaderCode& out, const pixel_shader_uid_data* uid_data, i if (cc.d == TEVCOLORARG_C2 || cc.d == TEVCOLORARG_A2 || ac.d == TEVALPHAARG_A2) out.SetConstantsUsed(C_COLORS + 3, C_COLORS + 3); - if (cc.dest >= GX_TEVREG0 && cc.dest <= GX_TEVREG2) + if (cc.dest >= GX_TEVREG0) out.SetConstantsUsed(C_COLORS + cc.dest, C_COLORS + cc.dest); - if (ac.dest >= GX_TEVREG0 && ac.dest <= GX_TEVREG2) + if (ac.dest >= GX_TEVREG0) out.SetConstantsUsed(C_COLORS + ac.dest, C_COLORS + ac.dest); out.Write("\ttevin_a = int4(%s, %s)&int4(255, 255, 255, 255);\n", tevCInputTable[cc.a], |
