all repos — mgba @ 8da533c551f423a252f12b79db132025c09e2a6b

mGBA Game Boy Advance Emulator

GBA Video: Fix unitialized value
Vicki Pfau vi@endrift.com
Sat, 28 Sep 2019 20:17:50 -0700
commit

8da533c551f423a252f12b79db132025c09e2a6b

parent

65b553022c3ff0190516e501ec49418428eb863e

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/gba/renderers/video-software.csrc/gba/renderers/video-software.c

@@ -131,6 +131,8 @@ memset(softwareRenderer->scanlineDirty, 0xFFFFFFFF, sizeof(softwareRenderer->scanlineDirty));

memset(softwareRenderer->cache, 0, sizeof(softwareRenderer->cache)); memset(softwareRenderer->nextIo, 0, sizeof(softwareRenderer->nextIo)); + softwareRenderer->lastHighlightAmount = 0; + for (i = 0; i < 4; ++i) { struct GBAVideoSoftwareBackground* bg = &softwareRenderer->bg[i]; bg->index = i;