Skip to content

Commit

Permalink
Removed "u_colorTable" uniform from the GLES2 renderer. It's not used…
Browse files Browse the repository at this point in the history
… anywhere.
  • Loading branch information
icculus committed Oct 4, 2013
1 parent 9c489c7 commit 500e4f6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/render/opengles2/SDL_render_gles2.c
Expand Up @@ -122,8 +122,7 @@ typedef enum
GLES2_UNIFORM_PROJECTION,
GLES2_UNIFORM_TEXTURE,
GLES2_UNIFORM_MODULATION,
GLES2_UNIFORM_COLOR,
GLES2_UNIFORM_COLORTABLE
GLES2_UNIFORM_COLOR
} GLES2_Uniform;

typedef enum
Expand Down Expand Up @@ -721,9 +720,7 @@ GLES2_CacheProgram(SDL_Renderer *renderer, GLES2_ShaderCacheEntry *vertex,
entry->uniform_locations[GLES2_UNIFORM_MODULATION] =
data->glGetUniformLocation(entry->id, "u_modulation");
entry->uniform_locations[GLES2_UNIFORM_COLOR] =
data->glGetUniformLocation(entry->id, "u_color");
entry->uniform_locations[GLES2_UNIFORM_COLORTABLE] =
data->glGetUniformLocation(entry->id, "u_colorTable");
rdata->glGetUniformLocation(entry->id, "u_color");

/* Cache the linked program */
if (data->program_cache.head)
Expand Down

0 comments on commit 500e4f6

Please sign in to comment.