diff options
| author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-03-10 16:15:40 +0100 |
|---|---|---|
| committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-03-25 23:57:57 +0100 |
| commit | 77a7bab5ae86871d756522affa3e4e899999da4c (patch) | |
| tree | 84663a865d2f7ab05622c99a15c1904ea991b028 /Source/Core/VideoCommon/PixelShaderManager.cpp | |
| parent | 948c0a54f14085b1edb76afe39ee985424ea4474 (diff) | |
BPMemory: Use the new BitField class in two selected structures.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderManager.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp index 7cbb155be2..bd24ce269a 100644 --- a/Source/Core/VideoCommon/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/PixelShaderManager.cpp @@ -148,17 +148,13 @@ void PixelShaderManager::SetConstants() } } -// This one is high in profiles (0.5%). -// TODO: Move conversion out, only store the raw color value -// and update it when the shader constant is set, only. -// TODO: Conversion should be checked in the context of tev_fixes.. void PixelShaderManager::SetColorChanged(int type, int num) { int4* c = type ? constants.kcolors : constants.colors; - c[num][0] = bpmem.tevregs[num].low.a; - c[num][3] = bpmem.tevregs[num].low.b; - c[num][2] = bpmem.tevregs[num].high.a; - c[num][1] = bpmem.tevregs[num].high.b; + c[num][0] = bpmem.tevregs[num].red; + c[num][3] = bpmem.tevregs[num].alpha; + c[num][2] = bpmem.tevregs[num].blue; + c[num][1] = bpmem.tevregs[num].green; dirty = true; PRIM_LOG("pixel %scolor%d: %d %d %d %d\n", type?"k":"", num, c[num][0], c[num][1], c[num][2], c[num][3]); |
