diff options
| author | NanoByte011 <nanobyte011@hotmail.com> | 2015-01-13 02:55:25 -0700 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2015-01-23 03:32:31 +1300 |
| commit | add59b3bea032e331363dcf28361f8e0de65e43d (patch) | |
| tree | c1cb3a129663f4ec68e6b8f165508ef5e9b5ebc8 /Source/Core/VideoCommon/PixelShaderManager.cpp | |
| parent | 6d5065c58d06e14a0c92632ce794958ddff977f3 (diff) | |
Fixes Mario Tennis Gimmick Courts and adds support for FastDepthCalc
- Calculate ZSlope every flush but only set PixelShader Constant on Reset Buffer when zfreeze
- Fixed another Pixel Shader bug in D3D that was giving me grief
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp index a94dfaf991..f80fc114ce 100644 --- a/Source/Core/VideoCommon/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/PixelShaderManager.cpp @@ -50,7 +50,7 @@ void PixelShaderManager::Dirty() SetZTextureBias(); SetViewportChanged(); SetEfbScaleChanged(); - SetZSlope(0, 0, 1); + SetZSlope(0, 0, (float)0xFFFFFF); SetIndTexScaleChanged(false); SetIndTexScaleChanged(true); SetIndMatrixChanged(0); @@ -116,7 +116,8 @@ void PixelShaderManager::SetConstants() s_bViewPortChanged = false; } - if (s_bEFBScaleChanged) { + if (s_bEFBScaleChanged) + { constants.efbscale[0] = 1.0f / float(Renderer::EFBToScaledXf(1)); constants.efbscale[1] = 1.0f / float(Renderer::EFBToScaledYf(1)); dirty = true; |
