Fixed bug 1474 - OpenGL renderer can't to display YV12 texture.
authorSam Lantinga <slouken@libsdl.org>
Tue, 19 Feb 2013 07:05:15 -0800
changeset 6903 0544fb94e265
parent 6902 c8cdc77c63f1
child 6904 9fea506e48ab
Fixed bug 1474 - OpenGL renderer can't to display YV12 texture.
src/render/opengl/SDL_shaders_gl.c
--- a/src/render/opengl/SDL_shaders_gl.c	Tue Feb 19 05:46:51 2013 -0800
+++ b/src/render/opengl/SDL_shaders_gl.c	Tue Feb 19 07:05:15 2013 -0800
@@ -244,7 +244,7 @@
     /* 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) {