Sfoglia il codice sorgente

Fixed /W4 compile warnings in sample SimpleOpenGL.

Marc-Antoine Lortie 5 anni fa
parent
commit
56e2f2e37e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      samples/SimpleOpenGL/Sample_SimpleOpenGL.c

+ 1 - 1
samples/SimpleOpenGL/Sample_SimpleOpenGL.c

@@ -245,7 +245,7 @@ void do_motion (void)
 	static int frames = 0;
 	static int frames = 0;
 
 
 	int time = glutGet(GLUT_ELAPSED_TIME);
 	int time = glutGet(GLUT_ELAPSED_TIME);
-	angle += (time-prev_time)*0.01;
+	angle += (time-prev_time)*0.01f;
 	prev_time = time;
 	prev_time = time;
 
 
 	frames += 1;
 	frames += 1;