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 - OpenGL renderer can't to display YV12 texture.
Summary: OpenGL renderer can't to display YV12 texture.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 major
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-12 07:08 UTC by lom
Modified: 2013-02-19 07:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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