mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-05 07:09:32 +00:00
Fixed bug #8897 - SDL_BlitSurface segfault when dest_rect is null
This commit is contained in:
@@ -772,7 +772,7 @@ int SDL_UpperBlit(SDL_Surface *src, const SDL_Rect *srcrect,
|
||||
if (dstrect) { /* update output parameter */
|
||||
*dstrect = r_dst;
|
||||
}
|
||||
return SDL_LowerBlit(src, &r_src, dst, dstrect);
|
||||
return SDL_LowerBlit(src, &r_src, dst, &r_dst);
|
||||
}
|
||||
|
||||
end:
|
||||
|
||||
Reference in New Issue
Block a user