GBA Video: Fix unitialized value

This commit is contained in:
Vicki Pfau 2019-09-28 20:17:50 -07:00
parent 65b553022c
commit 8da533c551
1 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,8 @@ static void GBAVideoSoftwareRendererReset(struct GBAVideoRenderer* renderer) {
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;