diff --git a/gfx/drivers_renderchain/d3d9_cg_renderchain.cpp b/gfx/drivers_renderchain/d3d9_cg_renderchain.cpp index 1e37447c92..c982e9734f 100644 --- a/gfx/drivers_renderchain/d3d9_cg_renderchain.cpp +++ b/gfx/drivers_renderchain/d3d9_cg_renderchain.cpp @@ -41,6 +41,8 @@ #define cg_d3d9_set_param_1f(param, x) if (param) cgD3D9SetUniform(param, x) +#define D3D_PI 3.14159265358979323846264338327 + namespace { struct lut_info @@ -1152,7 +1154,7 @@ static void renderchain_set_mvp( D3DXMatrixOrthoOffCenterLH(&ortho, 0, vp_width, 0, vp_height, 0, 1); D3DXMatrixIdentity(&rot); - D3DXMatrixRotationZ(&rot, rotation * (M_PI / 2.0)); + D3DXMatrixRotationZ(&rot, rotation * (D3D_PI / 2.0)); D3DXMatrixMultiply(&proj, &ortho, &rot); D3DXMatrixTranspose(&tmp, &proj);