| Summary: | OpenGL renderer can't to display YV12 texture. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | lom <kaegoorn48> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
Fixed, thanks! http://hg.libsdl.org/SDL/rev/0544fb94e265 |
sdl20/src/render/opengl/SDL_shaders_gl.c <code> static SDL_bool CompileShaderProgram(GL_ShaderContext *ctx, int index, GL_ShaderData *data) { ... char tex_name[5]; SDL_snprintf(tex_name, SDL_arraysize(tex_name), "tex%d", i); ... } </code> Size of "tex_name" must be increase, because "SDL_snprintf" uses wrong length calculation.