Add separate PI macro

This commit is contained in:
twinaphex 2017-04-24 10:31:25 +02:00
parent 365c7f9c8b
commit e411e7c284

View File

@ -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);