Skip to content

Commit

Permalink
Fix #13251 for D3D11. The remaining issue in #7124 should be fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Aug 6, 2020
1 parent 937042b commit ff248ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Common/ShaderUniforms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static void ConvertProjMatrixToVulkan(Matrix4x4 &in) {
}

static void ConvertProjMatrixToD3D11(Matrix4x4 &in) {
const Vec3 trans(gstate_c.vpXOffset, gstate_c.vpYOffset, gstate_c.vpZOffset * 0.5f + 0.5f);
const Vec3 trans(gstate_c.vpXOffset, -gstate_c.vpYOffset, gstate_c.vpZOffset * 0.5f + 0.5f);
const Vec3 scale(gstate_c.vpWidthScale, -gstate_c.vpHeightScale, gstate_c.vpDepthScale * 0.5f);
in.translateAndScale(trans, scale);
}
Expand Down

0 comments on commit ff248ff

Please sign in to comment.