Removed "u_colorTable" uniform from the GLES2 renderer. It's not used anywhere.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 04 Oct 2013 11:25:14 -0400
changeset 7783e6f43a80eff1
parent 7782 e4ed6e54101e
child 7784 70b305e09b4e
Removed "u_colorTable" uniform from the GLES2 renderer. It's not used anywhere.
src/render/opengles2/SDL_render_gles2.c
     1.1 --- a/src/render/opengles2/SDL_render_gles2.c	Fri Oct 04 08:23:37 2013 -0300
     1.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Fri Oct 04 11:25:14 2013 -0400
     1.3 @@ -122,8 +122,7 @@
     1.4      GLES2_UNIFORM_PROJECTION,
     1.5      GLES2_UNIFORM_TEXTURE,
     1.6      GLES2_UNIFORM_MODULATION,
     1.7 -    GLES2_UNIFORM_COLOR,
     1.8 -    GLES2_UNIFORM_COLORTABLE
     1.9 +    GLES2_UNIFORM_COLOR
    1.10  } GLES2_Uniform;
    1.11  
    1.12  typedef enum
    1.13 @@ -721,9 +720,7 @@
    1.14      entry->uniform_locations[GLES2_UNIFORM_MODULATION] =
    1.15          data->glGetUniformLocation(entry->id, "u_modulation");
    1.16      entry->uniform_locations[GLES2_UNIFORM_COLOR] =
    1.17 -        data->glGetUniformLocation(entry->id, "u_color");
    1.18 -    entry->uniform_locations[GLES2_UNIFORM_COLORTABLE] =
    1.19 -        data->glGetUniformLocation(entry->id, "u_colorTable");
    1.20 +        rdata->glGetUniformLocation(entry->id, "u_color");
    1.21  
    1.22      /* Cache the linked program */
    1.23      if (data->program_cache.head)