We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1474

Summary: OpenGL renderer can't to display YV12 texture.
Product: SDL Reporter: lom <kaegoorn48>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: All   

Description lom 2012-04-12 07:08:43 UTC
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.
Comment 1 Sam Lantinga 2013-02-19 07:05:58 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/0544fb94e265