diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2016-03-14 09:36:12 -0400 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2016-03-14 09:36:12 -0400 |
| commit | a53c0f6995fb0966959a8c2ef1ec434faba5c357 (patch) | |
| tree | 3b6009c9237a17803ae8175fdf43bba2630e6eab /Source/Core/VideoBackends/Software/Tev.cpp | |
| parent | 95e7c247df206e5268eb16e7c9ce0025a0f56d76 (diff) | |
| parent | ab44d2ec5c2e95221dd9f152bb80c63ae4345142 (diff) | |
Merge pull request #3717 from degasus/videosw
VideoSW: Drop stupid state setters.
Diffstat (limited to 'Source/Core/VideoBackends/Software/Tev.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Tev.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp index 5c7535bdb1..b8c02187d4 100644 --- a/Source/Core/VideoBackends/Software/Tev.cpp +++ b/Source/Core/VideoBackends/Software/Tev.cpp @@ -13,6 +13,7 @@ #include "VideoCommon/BoundingBox.h" #include "VideoCommon/PerfQueryBase.h" +#include "VideoCommon/PixelShaderManager.h" #include "VideoCommon/Statistics.h" #include "VideoCommon/VideoConfig.h" #include "VideoCommon/XFMemory.h" @@ -513,6 +514,15 @@ void Tev::Draw() INCSTAT(stats.thisFrame.tevPixelsIn); + // initial color values + for (int i = 0; i < 4; i++) + { + Reg[i][RED_C] = PixelShaderManager::constants.colors[i][0]; + Reg[i][GRN_C] = PixelShaderManager::constants.colors[i][1]; + Reg[i][BLU_C] = PixelShaderManager::constants.colors[i][2]; + Reg[i][ALP_C] = PixelShaderManager::constants.colors[i][3]; + } + for (unsigned int stageNum = 0; stageNum < bpmem.genMode.numindstages; stageNum++) { int stageNum2 = stageNum >> 1; @@ -800,15 +810,8 @@ void Tev::Draw() EfbInterface::BlendTev(Position[0], Position[1], output); } -void Tev::SetRegColor(int reg, int comp, bool konst, s16 color) +void Tev::SetRegColor(int reg, int comp, s16 color) { - if (konst) - { - KonstantColors[reg][comp] = color; - } - else - { - Reg[reg][comp] = color; - } + KonstantColors[reg][comp] = color; } |
