ref: 5cd9010ecf17b644e5cf965cc76eb0cd9a1ac9a3
parent: 540167a714a5f8f9c9335818801187baad91f1bc
author: Snesrev <snesrev@protonmail.com>
date: Wed Oct 12 21:07:25 EDT 2022
PpuGetCurrentRenderScale shouldn't read from ppu->renderFlags
--- a/snes/ppu.c
+++ b/snes/ppu.c
@@ -124,7 +124,7 @@
int PpuGetCurrentRenderScale(Ppu *ppu, uint32_t render_flags) {
bool hq = ppu->mode == 7 && !ppu->forcedBlank &&
- (ppu->renderFlags & (kPpuRenderFlags_4x4Mode7 | kPpuRenderFlags_NewRenderer)) == (kPpuRenderFlags_4x4Mode7 | kPpuRenderFlags_NewRenderer);
+ (render_flags & (kPpuRenderFlags_4x4Mode7 | kPpuRenderFlags_NewRenderer)) == (kPpuRenderFlags_4x4Mode7 | kPpuRenderFlags_NewRenderer);
return hq ? 4 : 2;
}