diff --git a/src/video/SDL_rect.c b/src/video/SDL_rect.c index 0c929517c..dd2c7bc7a 100644 --- a/src/video/SDL_rect.c +++ b/src/video/SDL_rect.c @@ -148,6 +148,7 @@ SDL_UnionRect(const SDL_Rect * A, const SDL_Rect * B, SDL_Rect * result) if (SDL_RectEmpty(A)) { if (SDL_RectEmpty(B)) { /* A and B empty */ + SDL_zerop(result); return; } else { /* A empty, B not empty */