diff options
| author | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2009-02-21 17:17:24 +0000 |
|---|---|---|
| committer | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2009-02-21 17:17:24 +0000 |
| commit | ca4726866919aaf6b69d1863bdf59cbc5022797a (patch) | |
| tree | b3de625b2e1ee0d9a9b8618769698de0da19d56c /Source/Core/VideoCommon/Src/VertexShaderManager.cpp | |
| parent | 0c13bf47610b615bdf2fea7b361266f17edfc981 (diff) | |
Vertex Shading / Projection Matrix done right (D3D)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2343 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/VertexShaderManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Src/VertexShaderManager.cpp b/Source/Core/VideoCommon/Src/VertexShaderManager.cpp index f083fac6eb..4d7eb3ed92 100644 --- a/Source/Core/VideoCommon/Src/VertexShaderManager.cpp +++ b/Source/Core/VideoCommon/Src/VertexShaderManager.cpp @@ -199,7 +199,7 @@ void VertexShaderManager::SetConstants(bool proj_hax_1, bool proj_hax_2) static float GC_ALIGNED16(g_fProjectionMatrix[16]); - if (xfregs.rawProjection[6] == 0) { + if (xfregs.rawProjection[6] == 0) { // Model View g_fProjectionMatrix[0] = xfregs.rawProjection[0]; g_fProjectionMatrix[1] = 0.0f; g_fProjectionMatrix[2] = xfregs.rawProjection[1]; @@ -252,7 +252,7 @@ void VertexShaderManager::SetConstants(bool proj_hax_1, bool proj_hax_2) SETSTAT_FT(stats.gproj_14, g_fProjectionMatrix[14]); SETSTAT_FT(stats.gproj_15, g_fProjectionMatrix[15]); } - else { + else { // Orthogonal g_fProjectionMatrix[0] = xfregs.rawProjection[0]; g_fProjectionMatrix[1] = 0.0f; g_fProjectionMatrix[2] = 0.0f; |
