diff options
| author | Léo Lam <leo@leolam.fr> | 2022-01-13 14:37:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-13 14:37:36 +0100 |
| commit | 07fd17445c6ca4e89b0cef023ba711bb27c920aa (patch) | |
| tree | e8736054ccd921b9599298e6ec7bbc5a3bb8f1eb /Source | |
| parent | 21b9e6a34fbd989547f968d4916e07e6a706b80e (diff) | |
| parent | fc0d958e26df5a450415195af3b85540be39e4b0 (diff) | |
Merge pull request #10366 from Pokechu22/bad-int3-constructor
PixelShaderGen: Fix invalid use of int3(0)
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index 6419efdea5..8aaba2e4e0 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -1688,7 +1688,7 @@ static void WriteStage(ShaderCode& out, const pixel_shader_uid_data* uid_data, i }; static constexpr EnumMap<const char*, TevCompareMode::RGB8> tev_rgb_comparison_eq{ - "((tevin_a.r == tevin_b.r) ? tevin_c.rgb : int3(0))", // TevCompareMode::R8 + "((tevin_a.r == tevin_b.r) ? tevin_c.rgb : int3(0,0,0))", // TevCompareMode::R8 "((idot(tevin_a.rgb,comp16) == idot(tevin_b.rgb,comp16)) ? tevin_c.rgb : int3(0,0,0))", // GR16 "((idot(tevin_a.rgb,comp24) == idot(tevin_b.rgb,comp24)) ? tevin_c.rgb : int3(0,0,0))", // BGR24 "((int3(1,1,1) - sign(abs(tevin_a.rgb - tevin_b.rgb))) * tevin_c.rgb)" // RGB8 |
