From e6d7df41dad3b8f71b76917bc37765623399ef84 Mon Sep 17 00:00:00 2001 From: byuu <2107894+byuu@users.noreply.github.com> Date: Sun, 28 Jul 2019 01:44:59 +0900 Subject: [PATCH] v107.17 * initialize ppu-fast tilecaches on startup ** (fixes graphical residue on Windows) --- bsnes/emulator/emulator.hpp | 2 +- bsnes/sfc/ppu-fast/ppu.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bsnes/emulator/emulator.hpp b/bsnes/emulator/emulator.hpp index b07c899f..7293118d 100644 --- a/bsnes/emulator/emulator.hpp +++ b/bsnes/emulator/emulator.hpp @@ -31,7 +31,7 @@ using namespace nall; namespace Emulator { static const string Name = "bsnes"; - static const string Version = "107.16"; + static const string Version = "107.17"; static const string Author = "byuu"; static const string License = "GPLv3"; static const string Website = "https://byuu.org"; diff --git a/bsnes/sfc/ppu-fast/ppu.cpp b/bsnes/sfc/ppu-fast/ppu.cpp index 12ba12ad..2ae2609f 100644 --- a/bsnes/sfc/ppu-fast/ppu.cpp +++ b/bsnes/sfc/ppu-fast/ppu.cpp @@ -45,9 +45,9 @@ PPU::PPU() { } } - tilecache[TileMode::BPP2] = new uint8_t[4096 * 8 * 8]; - tilecache[TileMode::BPP4] = new uint8_t[2048 * 8 * 8]; - tilecache[TileMode::BPP8] = new uint8_t[1024 * 8 * 8]; + tilecache[TileMode::BPP2] = new uint8_t[4096 * 8 * 8](); + tilecache[TileMode::BPP4] = new uint8_t[2048 * 8 * 8](); + tilecache[TileMode::BPP8] = new uint8_t[1024 * 8 * 8](); for(uint y : range(240)) { lines[y].y = y;