Ah there, that fixed it. :)
1.1 --- a/src/render/opengl/SDL_render_gl.c Sat Feb 12 00:25:02 2011 -0800
1.2 +++ b/src/render/opengl/SDL_render_gl.c Sat Feb 12 00:42:39 2011 -0800
1.3 @@ -553,8 +553,12 @@
1.4 rect->h, data->format, data->formattype,
1.5 pixels);
1.6 if (data->yuv) {
1.7 + const void *top;
1.8 +
1.9 + renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH, (pitch / 2));
1.10 +
1.11 /* Skip to the top of the next texture */
1.12 - const void *top = (const void*)((const Uint8*)pixels + (texture->h-rect->y) * pitch - rect->x);
1.13 + top = (const void*)((const Uint8*)pixels + (texture->h-rect->y) * pitch - rect->x);
1.14
1.15 /* Skip to the correct offset into the next texture */
1.16 pixels = (const void*)((const Uint8*)top + (rect->y / 2) * pitch + rect->x / 2);