Commit ebfdcc9c authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

d3dx9_36/tests: Use D3DX_PI instead of M_PI.

parent f6c90ec5
......@@ -2564,12 +2564,12 @@ static BOOL compute_sphere(struct mesh *mesh, FLOAT radius, UINT slices, UINT st
int slice, stack;
/* theta = angle on xy plane wrt x axis */
theta_step = M_PI / stacks;
theta_step = D3DX_PI / stacks;
theta_start = theta_step;
/* phi = angle on xz plane wrt z axis */
phi_step = -2 * M_PI / slices;
phi_start = M_PI / 2;
phi_step = -2 * D3DX_PI / slices;
phi_start = D3DX_PI / 2;
if (!compute_sincos_table(&theta, theta_start, theta_step, stacks))
{
......@@ -2800,8 +2800,8 @@ static BOOL compute_cylinder(struct mesh *mesh, FLOAT radius1, FLOAT radius2, FL
int slice, stack;
/* theta = angle on xy plane wrt x axis */
theta_step = -2 * M_PI / slices;
theta_start = M_PI / 2;
theta_step = -2 * D3DX_PI / slices;
theta_start = D3DX_PI / 2;
if (!compute_sincos_table(&theta, theta_start, theta_step, slices))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment