diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-12-26 13:24:47 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-08-29 11:10:05 -0700 |
| commit | ae0fcd9a9f495bb11820545ae46dbe0827328b6b (patch) | |
| tree | e64126a4f3ae2ab063feb6a7848b9a4fb496f69e /Source/Core/VideoBackends/Software/Tev.cpp | |
| parent | 3b9a048291bd9edeb69cb8c074ac3cbba3744531 (diff) | |
SW/Tev: Replace Tev::SetRegColor with Tev::SetKonstColors
Diffstat (limited to 'Source/Core/VideoBackends/Software/Tev.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Tev.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp index f1fecdab40..b85fdc0c3b 100644 --- a/Source/Core/VideoBackends/Software/Tev.cpp +++ b/Source/Core/VideoBackends/Software/Tev.cpp @@ -740,7 +740,13 @@ void Tev::Draw() EfbInterface::BlendTev(Position[0], Position[1], output); } -void Tev::SetRegColor(int reg, int comp, s16 color) +void Tev::SetKonstColors() { - KonstantColors[reg][comp] = color; + for (int i = 0; i < 4; i++) + { + KonstantColors[i].r = PixelShaderManager::constants.kcolors[i][0]; + KonstantColors[i].g = PixelShaderManager::constants.kcolors[i][1]; + KonstantColors[i].b = PixelShaderManager::constants.kcolors[i][2]; + KonstantColors[i].a = PixelShaderManager::constants.kcolors[i][3]; + } } |
