From c1b340feb58b42f8b07d75c27e7d3b6b1b9e96cd Mon Sep 17 00:00:00 2001 From: Sonicadvance1 Date: Thu, 25 Sep 2008 16:31:16 +0000 Subject: [PATCH] Projection Matrix fix, allows PSO to work. If it breaks any games, Tell me. I didn't see any broken ones though. Why was it doing this in the first place? DX does it this new way as well >> git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@691 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/VertexShaderManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexShaderManager.cpp b/Source/Plugins/Plugin_VideoOGL/Src/VertexShaderManager.cpp index 94182ca7a9..7d1517030d 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/VertexShaderManager.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/VertexShaderManager.cpp @@ -343,7 +343,7 @@ void VertexShaderMngr::SetConstants(VERTEXSHADER& vs) g_fProjectionMatrix[8] = 0.0f; g_fProjectionMatrix[9] = 0.0f; - g_fProjectionMatrix[10] = -(1-rawProjection[4]); + g_fProjectionMatrix[10] = rawProjection[4]; g_fProjectionMatrix[11] = rawProjection[5]; g_fProjectionMatrix[12] = 0.0f; @@ -365,7 +365,7 @@ void VertexShaderMngr::SetConstants(VERTEXSHADER& vs) g_fProjectionMatrix[8] = 0.0f; g_fProjectionMatrix[9] = 0.0f; g_fProjectionMatrix[10] = rawProjection[4]; - g_fProjectionMatrix[11] = -(-1 - rawProjection[5]); + g_fProjectionMatrix[11] = rawProjection[5]; g_fProjectionMatrix[12] = 0; g_fProjectionMatrix[13] = 0;