From a0a0330a6c1675ab9d43bafb6ebd18da720b744b Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Wed, 5 May 2021 15:25:55 +0800 Subject: [PATCH] PixmanBlt only works when source surface and destination surface are not same --- src/newgal/blit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/newgal/blit.c b/src/newgal/blit.c index 9badad3d..277c71fd 100644 --- a/src/newgal/blit.c +++ b/src/newgal/blit.c @@ -313,7 +313,8 @@ int GAL_CalculateBlit(GAL_Surface *surface) // have colorkey surface->map->sw_blit = GAL_SoftBlit; } - else if (surface->pix_img && surface->map->dst->pix_img) { + else if (surface->pix_img && surface->map->dst->pix_img && + surface != surface->map->dst) { surface->map->sw_blit = GAL_PixmanBlit; } else {