PixmanBlt only works when source surface and destination surface are not same

This commit is contained in:
Vincent Wei
2021-05-05 15:25:55 +08:00
parent 46854579be
commit a0a0330a6c
+2 -1
View File
@@ -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 {