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

(cherry picked from commit 7d093940a7)
This commit is contained in:
Ryan C. Gordon 2026-02-02 17:16:20 -05:00
parent 9bf533d1c4
commit f9bb023eeb
No known key found for this signature in database
GPG key ID: FA148B892AB48044
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 = {};
});