Fixed bug 1474 - OpenGL renderer can't to display YV12 texture.
This commit is contained in:
parent
aa427c702d
commit
fed4aded8f
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue