Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information
slouken committed Feb 19, 2013
1 parent 0f4c847 commit b6824f56455a386c01030c6cd6b66d0453df2cea

File 1 of 1 in b6824f5

@@ -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) {

0 comments on commit b6824f5

Please sign in to comment.