Fix example build errors on legacy MinGW

This commit is contained in:
Camilla Berglund
2015-11-10 14:07:30 +01:00
parent 27462c1078
commit d9e43ea120
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -319,7 +319,7 @@ static void update_map(int num_iter)
{
GLfloat dx = center_x - map_vertices[0][ii];
GLfloat dz = center_z - map_vertices[2][ii];
GLfloat pd = (2.0f * sqrtf((dx * dx) + (dz * dz))) / circle_size;
GLfloat pd = (2.0f * (float) sqrt((dx * dx) + (dz * dz))) / circle_size;
if (fabs(pd) <= 1.0f)
{
/* tx,tz is within the circle */