Fix engine_advanced example.

This commit is contained in:
David Reid
2022-10-02 13:20:29 +10:00
parent 5b90f7b72b
commit 034cc5f82a
+3
View File
@@ -238,6 +238,9 @@ int main(int argc, char** argv)
ma_device_uninit(&devices[iEngine]);
}
/* The context can only be uninitialized after the devices. */
ma_context_uninit(&context);
/*
Do the resource manager last. This way we can guarantee the data callbacks of each device aren't trying to access
and data managed by the resource manager.