Fixed bug 1474 - OpenGL renderer can't to display YV12 texture.

This commit is contained in:
Sam Lantinga 2013-02-19 07:05:15 -08:00
parent aa427c702d
commit fed4aded8f

View file

@ -244,7 +244,7 @@ CompileShaderProgram(GL_ShaderContext *ctx, int index, GL_ShaderData *data)
/* Set up some uniform variables */
ctx->glUseProgramObjectARB(data->program);
for (i = 0; i < num_tmus_bound; ++i) {
char tex_name[5];
char tex_name[10];
SDL_snprintf(tex_name, SDL_arraysize(tex_name), "tex%d", i);
location = ctx->glGetUniformLocationARB(data->program, tex_name);
if (location >= 0) {