mirror of https://github.com/mgba-emu/mgba.git
DS Video: Fix some uninitialized variables
This commit is contained in:
parent
54a94ca40d
commit
d3fe231758
|
@ -55,6 +55,9 @@ static void DSVideoSoftwareRendererReset(struct DSVideoRenderer* renderer) {
|
||||||
struct DSVideoSoftwareRenderer* softwareRenderer = (struct DSVideoSoftwareRenderer*) renderer;
|
struct DSVideoSoftwareRenderer* softwareRenderer = (struct DSVideoSoftwareRenderer*) renderer;
|
||||||
softwareRenderer->engA.d.reset(&softwareRenderer->engA.d);
|
softwareRenderer->engA.d.reset(&softwareRenderer->engA.d);
|
||||||
softwareRenderer->engB.d.reset(&softwareRenderer->engB.d);
|
softwareRenderer->engB.d.reset(&softwareRenderer->engB.d);
|
||||||
|
softwareRenderer->powcnt = 0;
|
||||||
|
softwareRenderer->dispcntA = 0;
|
||||||
|
softwareRenderer->dispcntB = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void DSVideoSoftwareRendererDeinit(struct DSVideoRenderer* renderer) {
|
static void DSVideoSoftwareRendererDeinit(struct DSVideoRenderer* renderer) {
|
||||||
|
|
Loading…
Reference in New Issue