diff options
| author | shuffle2 <godisgovernment@gmail.com> | 2014-08-20 10:57:31 -0700 |
|---|---|---|
| committer | shuffle2 <godisgovernment@gmail.com> | 2014-08-20 10:57:31 -0700 |
| commit | d29e3331426823b0dcd49a7436a4a8a6bdf60dcf (patch) | |
| tree | 84bbe066f736929fc1b4e381f3c719006070d409 /Source/Core/VideoCommon/PixelShaderManager.cpp | |
| parent | a09cf1d8f1bdc58de56b8fbb2d2282b8e59d2e69 (diff) | |
| parent | a9c33075f2f2b8ca6ffb699308a282e385a726b9 (diff) | |
Merge pull request #833 from shuffle2/msvc-improvements
misc improvements for msvc build. -Werror for msvc!
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderManager.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp index 3ea6713ebd..b20b9815a4 100644 --- a/Source/Core/VideoCommon/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/PixelShaderManager.cpp @@ -100,8 +100,8 @@ void PixelShaderManager::SetConstants() if (s_bViewPortChanged) { - constants.zbias[1][0] = xfmem.viewport.farZ; - constants.zbias[1][1] = xfmem.viewport.zRange; + constants.zbias[1][0] = static_cast<u32>(xfmem.viewport.farZ); + constants.zbias[1][1] = static_cast<u32>(xfmem.viewport.zRange); dirty = true; s_bViewPortChanged = false; } @@ -110,10 +110,10 @@ void PixelShaderManager::SetConstants() void PixelShaderManager::SetColorChanged(int type, int num) { int4* c = type ? constants.kcolors : constants.colors; - 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; + c[num][0] = static_cast<s32>(bpmem.tevregs[num].red); + c[num][3] = static_cast<s32>(bpmem.tevregs[num].alpha); + c[num][2] = static_cast<s32>(bpmem.tevregs[num].blue); + c[num][1] = static_cast<s32>(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]); |
