mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-03 17:55:27 +02:00
Merge pull request #13071 from hrydgard/d3d9-proj-fix
D3D9: Fix a sign mistake generating the projection matrix.
This commit is contained in:
1 file changed
+2
-2
@@ -251,9 +251,9 @@ static void ConvertProjMatrixToD3D(Matrix4x4 &in, bool invertedX, bool invertedY
|
||||
|
||||
float yoff = -1.0f / gstate_c.curRTRenderHeight;
|
||||
if (invertedY) {
|
||||
yoff = gstate_c.vpYOffset - yoff;
|
||||
} else {
|
||||
yoff = -gstate_c.vpYOffset - yoff;
|
||||
} else {
|
||||
yoff = gstate_c.vpYOffset - yoff;
|
||||
}
|
||||
|
||||
const Vec3 trans(xoff, yoff, gstate_c.vpZOffset * 0.5f + 0.5f);
|
||||
|
||||
Reference in new issue
Block a user