Fixed setting the texture unit, still doesn't work.

This commit is contained in:
Sam Lantinga 2011-02-08 16:50:51 -08:00
parent e66660c5f6
commit fd61299f87
2 changed files with 2 additions and 2 deletions

View file

@ -183,7 +183,7 @@ CompileShaderProgram(GL_ShaderContext *ctx, int index, GL_ShaderData *data)
SDL_snprintf(tex_name, SDL_arraysize(tex_name), "tex%d", i);
location = ctx->glGetUniformLocationARB(data->program, tex_name);
if (location >= 0) {
ctx->glUniform1iARB(location, 1);
ctx->glUniform1iARB(location, i);
}
}
ctx->glUseProgramObjectARB(0);