Commit 03fa1566 authored by Sam Lantinga's avatar Sam Lantinga

Fixed crash when resizing YUV textures

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403344
parent b18cb001
...@@ -643,6 +643,7 @@ X11_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture, ...@@ -643,6 +643,7 @@ X11_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
} }
/* Set up fake surfaces for SDL_SoftStretch() */ /* Set up fake surfaces for SDL_SoftStretch() */
SDL_zero(src);
src.format = &fmt; src.format = &fmt;
src.w = texture->w; src.w = texture->w;
src.h = texture->h; src.h = texture->h;
...@@ -654,6 +655,7 @@ X11_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture, ...@@ -654,6 +655,7 @@ X11_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
src.pixels = texturedata->pixels; src.pixels = texturedata->pixels;
src.pitch = texturedata->pitch; src.pitch = texturedata->pitch;
SDL_zero(dst);
dst.format = &fmt; dst.format = &fmt;
dst.w = image->width; dst.w = image->width;
dst.h = image->height; dst.h = image->height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment