From 77a7bab5ae86871d756522affa3e4e899999da4c Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Mon, 10 Mar 2014 16:15:40 +0100 Subject: BPMemory: Use the new BitField class in two selected structures. --- Source/Core/VideoCommon/PixelShaderManager.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Source/Core/VideoCommon/PixelShaderManager.cpp') 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]); -- cgit v1.2.3