Navigation Menu

Skip to content

Commit

Permalink
Fixed float to int conversion warning, which was a legitimate bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 24, 2013
1 parent 8e0dfef commit 7fe277c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/opengles2/SDL_render_gles2.c
Expand Up @@ -724,8 +724,8 @@ GLES2_CacheProgram(SDL_Renderer *renderer, GLES2_ShaderCacheEntry *vertex,
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);
Expand Down

0 comments on commit 7fe277c

Please sign in to comment.