mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Fix unitialized value
This commit is contained in:
parent
65b553022c
commit
8da533c551
|
@ -131,6 +131,8 @@ static void GBAVideoSoftwareRendererReset(struct GBAVideoRenderer* renderer) {
|
||||||
memset(softwareRenderer->cache, 0, sizeof(softwareRenderer->cache));
|
memset(softwareRenderer->cache, 0, sizeof(softwareRenderer->cache));
|
||||||
memset(softwareRenderer->nextIo, 0, sizeof(softwareRenderer->nextIo));
|
memset(softwareRenderer->nextIo, 0, sizeof(softwareRenderer->nextIo));
|
||||||
|
|
||||||
|
softwareRenderer->lastHighlightAmount = 0;
|
||||||
|
|
||||||
for (i = 0; i < 4; ++i) {
|
for (i = 0; i < 4; ++i) {
|
||||||
struct GBAVideoSoftwareBackground* bg = &softwareRenderer->bg[i];
|
struct GBAVideoSoftwareBackground* bg = &softwareRenderer->bg[i];
|
||||||
bg->index = i;
|
bg->index = i;
|
||||||
|
|
Loading…
Reference in New Issue