Skip to content

Commit cf6c42e

Browse files
committed
Use HEAPU8.set rather than Module.HEAPU8.set (thanks @sbc100!)
The Module object is the external interface to the application, internal symbols like HEAPU8 don't need to be exported to be used and usage should not be prefixed with Module. Fixes #13156 Closes #13157
1 parent 4b0f48c commit cf6c42e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/camera/emscripten/SDL_camera_emscripten.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static SDL_CameraFrameResult EMSCRIPTENCAMERA_AcquireFrame(SDL_Camera *device, S
6161

6262
SDL3.camera.ctx2d.drawImage(SDL3.camera.video, 0, 0, w, h);
6363
const imgrgba = SDL3.camera.ctx2d.getImageData(0, 0, w, h).data;
64-
Module.HEAPU8.set(imgrgba, rgba);
64+
HEAPU8.set(imgrgba, rgba);
6565

6666
return 1;
6767
}, device->actual_spec.width, device->actual_spec.height, rgba);

0 commit comments

Comments
 (0)