src/render/opengl/SDL_shaders_gl.c
changeset 5229 c015d3e63631
parent 5228 811beeb698f9
child 5230 8efa43b915be
     1.1 --- a/src/render/opengl/SDL_shaders_gl.c	Tue Feb 08 16:27:52 2011 -0800
     1.2 +++ b/src/render/opengl/SDL_shaders_gl.c	Tue Feb 08 16:50:51 2011 -0800
     1.3 @@ -183,7 +183,7 @@
     1.4          SDL_snprintf(tex_name, SDL_arraysize(tex_name), "tex%d", i);
     1.5          location = ctx->glGetUniformLocationARB(data->program, tex_name);
     1.6          if (location >= 0) {
     1.7 -            ctx->glUniform1iARB(location, 1);
     1.8 +            ctx->glUniform1iARB(location, i);
     1.9          }
    1.10      }
    1.11      ctx->glUseProgramObjectARB(0);