diff --git a/gfx/drivers/d3d8.c b/gfx/drivers/d3d8.c index 5b625ae066..e5106bcb63 100644 --- a/gfx/drivers/d3d8.c +++ b/gfx/drivers/d3d8.c @@ -803,7 +803,6 @@ static void d3d8_set_viewport(void *data, d3d->final_viewport.MaxZ = 0.0f; d3d_matrix_ortho_off_center_lh(&ortho, 0, 1, 0, 1, 0.0f, 1.0f); - d3d_matrix_identity(&rot); d3d_matrix_rotation_z(&rot, d3d->dev_rotation * (M_PI / 2.0)); d3d_matrix_multiply(&proj, &ortho, &rot); d3d_matrix_transpose(&d3d->mvp, &ortho); diff --git a/gfx/drivers/d3d9cg.c b/gfx/drivers/d3d9cg.c index e2e3973152..0be857b90e 100644 --- a/gfx/drivers/d3d9cg.c +++ b/gfx/drivers/d3d9cg.c @@ -925,7 +925,6 @@ static void d3d9_cg_renderchain_calc_and_set_shader_mvp( CGparameter cgp = cgGetNamedParameter(data, "modelViewProj"); d3d_matrix_ortho_off_center_lh(&ortho, 0, vp_width, 0, vp_height, 0, 1); - d3d_matrix_identity(&rot); d3d_matrix_rotation_z(&rot, rotation * (D3D_PI / 2.0)); d3d_matrix_multiply(&proj, &ortho, &rot); d3d_matrix_transpose(&matrix, &proj); diff --git a/gfx/drivers/d3d9hlsl.c b/gfx/drivers/d3d9hlsl.c index c031d7cb3b..381f7fb334 100644 --- a/gfx/drivers/d3d9hlsl.c +++ b/gfx/drivers/d3d9hlsl.c @@ -351,9 +351,7 @@ static void hlsl_d3d9_renderchain_calc_and_set_shader_mvp( d3d_matrix_ortho_off_center_lh(&ortho, 0, vp_width, 0, vp_height, 0, 1); - d3d_matrix_identity(&rot); d3d_matrix_rotation_z(&rot, rotation * (D3D_PI / 2.0)); - d3d_matrix_multiply(&proj, &ortho, &rot); d3d_matrix_transpose(&matrix, &proj);