Fixed crash when resizing YUV textures
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403344
This commit is contained in:
parent
b18cb0012e
commit
03fa156604
1 changed files with 2 additions and 0 deletions
|
@ -643,6 +643,7 @@ X11_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
|
|||
}
|
||||
|
||||
/* 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 @@ X11_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
|
|||
src.pixels = texturedata->pixels;
|
||||
src.pitch = texturedata->pitch;
|
||||
|
||||
SDL_zero(dst);
|
||||
dst.format = &fmt;
|
||||
dst.w = image->width;
|
||||
dst.h = image->height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue