Fixed float to int conversion warning, which was a legitimate bug.
authorSam Lantinga <slouken@libsdl.org>
Mon, 23 Dec 2013 17:15:32 -0800
changeset 8070 c0cedfd0c45e
parent 8069 5f1760a28685
child 8071 1ac2db4abe11
Fixed float to int conversion warning, which was a legitimate bug.
src/render/opengles2/SDL_render_gles2.c
--- a/src/render/opengles2/SDL_render_gles2.c	Mon Dec 23 15:55:47 2013 -0800
+++ b/src/render/opengles2/SDL_render_gles2.c	Mon Dec 23 17:15:32 2013 -0800
@@ -724,8 +724,8 @@
     entry->uniform_locations[GLES2_UNIFORM_COLOR] =
         data->glGetUniformLocation(entry->id, "u_color");
 
-    entry->modulation_r = entry->modulation_g = entry->modulation_b = entry->modulation_a = 1.0f;
-    entry->color_r = entry->color_g = entry->color_b = entry->color_a = 1.0f;
+    entry->modulation_r = entry->modulation_g = entry->modulation_b = entry->modulation_a = 255;
+    entry->color_r = entry->color_g = entry->color_b = entry->color_a = 255;
 
     data->glUseProgram(entry->id);
     data->glUniformMatrix4fv(entry->uniform_locations[GLES2_UNIFORM_PROJECTION], 1, GL_FALSE, (GLfloat *)entry->projection);