From d41b8c5df624dedceb4a13d106a7b9ea2dd7f5cf Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 30 Aug 2014 01:26:33 -0700 Subject: [PATCH] Fix uninitialized memory for OAM count --- src/gba/renderers/video-software.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gba/renderers/video-software.c b/src/gba/renderers/video-software.c index 46562f673..c3a517ee6 100644 --- a/src/gba/renderers/video-software.c +++ b/src/gba/renderers/video-software.c @@ -103,6 +103,7 @@ static void GBAVideoSoftwareRendererInit(struct GBAVideoRenderer* renderer) { softwareRenderer->objwin.priority = 2; softwareRenderer->winout.packed = 0; softwareRenderer->winout.priority = 3; + softwareRenderer->oamMax = 0; softwareRenderer->mosaic.packed = 0;