From d3fe231758ce8eafc1d3b0daf81fcf82e617bb1a Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 23 Feb 2017 18:05:22 -0800 Subject: [PATCH] DS Video: Fix some uninitialized variables --- src/ds/renderers/software.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ds/renderers/software.c b/src/ds/renderers/software.c index 2cf54bdd0..a800a4918 100644 --- a/src/ds/renderers/software.c +++ b/src/ds/renderers/software.c @@ -55,6 +55,9 @@ static void DSVideoSoftwareRendererReset(struct DSVideoRenderer* renderer) { struct DSVideoSoftwareRenderer* softwareRenderer = (struct DSVideoSoftwareRenderer*) renderer; softwareRenderer->engA.d.reset(&softwareRenderer->engA.d); softwareRenderer->engB.d.reset(&softwareRenderer->engB.d); + softwareRenderer->powcnt = 0; + softwareRenderer->dispcntA = 0; + softwareRenderer->dispcntB = 0; } static void DSVideoSoftwareRendererDeinit(struct DSVideoRenderer* renderer) {