From c2287d655acbbef2108c0fc93ab248db75595347 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 17 Aug 2018 23:16:01 +0300 Subject: [PATCH] Skip blit validation if blit call is "fake" memory to VRAM generated. --- qemuvga/cirrus_vga.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemuvga/cirrus_vga.cpp b/qemuvga/cirrus_vga.cpp index dcd0e27a..fa12e856 100644 --- a/qemuvga/cirrus_vga.cpp +++ b/qemuvga/cirrus_vga.cpp @@ -178,7 +178,7 @@ static void check_blit(int32_t addr, uint32_t mask, int pitch, int width, int *h { int h = *height; int32_t off; - if (!h || !width) + if (!h || !width || (!addr && !mask)) return; addr &= mask; off = addr + pitch * (h - 1); -- 2.47.3