diff --git a/freeglut/freeglut/ChangeLog b/freeglut/freeglut/ChangeLog index 45122f0..2410cd8 100644 --- a/freeglut/freeglut/ChangeLog +++ b/freeglut/freeglut/ChangeLog @@ -1,3 +1,8 @@ +2009-03-27 Sven Panne + + * progs/demos/smooth_opengl3/smooth_opengl3.c: Make Visual C happy by + including stddef.h and explicitly marking some literals as float. + 2009-03-26 Sven Panne * src/freeglut_init.c,src/freeglut_input_devices.c: Unbreak the build: diff --git a/freeglut/freeglut/progs/demos/smooth_opengl3/smooth_opengl3.c b/freeglut/freeglut/progs/demos/smooth_opengl3/smooth_opengl3.c index a671a53..74e4e78 100755 --- a/freeglut/freeglut/progs/demos/smooth_opengl3/smooth_opengl3.c +++ b/freeglut/freeglut/progs/demos/smooth_opengl3/smooth_opengl3.c @@ -45,6 +45,7 @@ #include #include #include +#include #include /* report GL errors, if any, to stderr */ @@ -397,9 +398,9 @@ void reshape (int w, int h) { glViewport (0, 0, (GLsizei) w, (GLsizei) h); if (w <= h) { - loadOrtho2Df (projectionMatrix, 0.0, 30.0, 0.0, 30.0 * (GLfloat) h/(GLfloat) w); + loadOrtho2Df (projectionMatrix, 0.0f, 30.0f, 0.0f, 30.0f * (GLfloat) h/(GLfloat) w); } else { - loadOrtho2Df (projectionMatrix, 0.0, 30.0 * (GLfloat) w/(GLfloat) h, 0.0, 30.0); + loadOrtho2Df (projectionMatrix, 0.0f, 30.0f * (GLfloat) w/(GLfloat) h, 0.0f, 30.0f); } checkError ("reshape"); }