Various Windows and VC++ 2010 fixes.
diff --git a/examples/heightmap.c b/examples/heightmap.c index f37c732..1d3dd72 100644 --- a/examples/heightmap.c +++ b/examples/heightmap.c
@@ -23,6 +23,8 @@ // //======================================================================== +#define _CRT_SECURE_NO_WARNINGS + #include <stdlib.h> #include <stdio.h> #include <math.h> @@ -422,7 +424,7 @@ if (fabs(pd) <= 1.0f) { /* tx,tz is within the circle */ - GLfloat new_height = disp + (cos(pd*3.14f)*disp); + GLfloat new_height = disp + (float) (cos(pd*3.14f)*disp); map_vertices[1][ii] += new_height; } }