# HG changeset patch # User Sam Lantinga # Date 1229755597 0 # Node ID 04e89201f6ede2f76b0be5050ef247fdb4106f27 # Parent c8d203ef4335e5f7912d9fdadde8927e36925a21 Fixed crash when resizing YUV textures diff -r c8d203ef4335 -r 04e89201f6ed src/video/x11/SDL_x11render.c --- a/src/video/x11/SDL_x11render.c Fri Dec 19 09:15:59 2008 +0000 +++ b/src/video/x11/SDL_x11render.c Sat Dec 20 06:46:37 2008 +0000 @@ -643,6 +643,7 @@ } /* Set up fake surfaces for SDL_SoftStretch() */ + SDL_zero(src); src.format = &fmt; src.w = texture->w; src.h = texture->h; @@ -654,6 +655,7 @@ src.pixels = texturedata->pixels; src.pitch = texturedata->pitch; + SDL_zero(dst); dst.format = &fmt; dst.w = image->width; dst.h = image->height;