mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix uninitialized member
This commit is contained in:
parent
ba41f68149
commit
92849dee1a
|
@ -42,6 +42,7 @@ bool GBASDLInitAudio(struct GBASDLAudio* context, struct GBAThread* threadContex
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
context->samples = context->obtainedSpec.samples;
|
context->samples = context->obtainedSpec.samples;
|
||||||
|
context->gba = 0;
|
||||||
|
|
||||||
if (threadContext) {
|
if (threadContext) {
|
||||||
context->thread = threadContext;
|
context->thread = threadContext;
|
||||||
|
|
Loading…
Reference in New Issue