From 0daeed25c65412400e7b0b12ee1dc371c4060920 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 7 Apr 2023 23:14:46 +0200 Subject: last-ditch debugging efforts --- src/ppu/internals.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ppu/internals.c') diff --git a/src/ppu/internals.c b/src/ppu/internals.c index 7fd2eb9..5badfc9 100644 --- a/src/ppu/internals.c +++ b/src/ppu/internals.c @@ -105,6 +105,7 @@ void hh_ppu_vram_buffer(uint8_t data[4]) { } void hh_ppu_vram_flush() { + if (g_hh_ppu_vram_buffer_size == 0) return; hh_ppu_vram_buffer((uint8_t[4]){ 0xff, 0xff, 0xff, 0xff }); hh_ppu_vram_dwrite(g_hh_ppu_vram_buffer_ptr, g_hh_ppu_vram_buffer_size); g_hh_ppu_vram_buffer_size = 0; -- cgit v1.2.3