From 66ecd60da1a3fda132a137c14cc0d5a2a7f14e0e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 7 Apr 2015 03:08:25 +0200 Subject: [PATCH] (D3D) renderchain_set_mvp - cleanup --- gfx/d3d/render_chain_cg.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gfx/d3d/render_chain_cg.cpp b/gfx/d3d/render_chain_cg.cpp index 86531b9d0f..6f2fcbca61 100644 --- a/gfx/d3d/render_chain_cg.cpp +++ b/gfx/d3d/render_chain_cg.cpp @@ -1207,11 +1207,8 @@ static void renderchain_set_mvp(void *data, void *vertex_program, return; D3DXMatrixOrthoOffCenterLH(&ortho, 0, vp_width, 0, vp_height, 0, 1); - - if (rotation) - D3DXMatrixRotationZ(&rot, rotation * (M_PI / 2.0)); - else - D3DXMatrixIdentity(&rot); + D3DXMatrixIdentity(&rot); + D3DXMatrixRotationZ(&rot, rotation * (M_PI / 2.0)); D3DXMatrixMultiply(&proj, &ortho, &rot); D3DXMatrixTranspose(&tmp, &proj);