mirror of
https://github.com/yawut/SDL.git
synced 2026-04-18 22:57:25 -05:00
Fixed bug 1474 - OpenGL renderer can't to display YV12 texture.
This commit is contained in:
parent
69e2715258
commit
509366e2ca
|
|
@ -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…
Reference in New Issue
Block a user