From b6824f56455a386c01030c6cd6b66d0453df2cea Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 19 Feb 2013 07:05:15 -0800 Subject: [PATCH] Fixed bug 1474 - OpenGL renderer can't to display YV12 texture. --- src/render/opengl/SDL_shaders_gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/opengl/SDL_shaders_gl.c b/src/render/opengl/SDL_shaders_gl.c index b5e27ad23..9b75032ef 100644 --- a/src/render/opengl/SDL_shaders_gl.c +++ b/src/render/opengl/SDL_shaders_gl.c @@ -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) {