Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed crash when resizing YUV textures
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 20, 2008
1 parent ab11c42 commit b1b2216
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/x11/SDL_x11render.c
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit b1b2216

Please sign in to comment.