emscripten: Unify creation of Module['SDL3'] in at SDL_Init time.

This commit is contained in:
Ryan C. Gordon
2026-02-02 17:16:20 -05:00
parent de605a3b7e
commit 7d093940a7
8 changed files with 8 additions and 24 deletions

View File

@@ -247,9 +247,6 @@ static void EMSCRIPTENCAMERA_DetectDevices(void)
static bool EMSCRIPTENCAMERA_Init(SDL_CameraDriverImpl *impl)
{
MAIN_THREAD_EM_ASM({
if (typeof(Module['SDL3']) === 'undefined') {
Module['SDL3'] = {};
}
Module['SDL3'].camera = {};
});