Skip to content

Commit ada13f2

Browse files
committed
fix missing Module prefix for _malloc (fixes #604)
1 parent 3b43aac commit ada13f2

6 files changed

Lines changed: 8 additions & 10 deletions

File tree

build/artoolkitNFT.debug.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/artoolkitNFT.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/artoolkitNFT_thread.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/artoolkitNFT_wasm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/artoolkitNFT_wasm.simd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/artoolkitNFT.api.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,10 +678,9 @@
678678
this._initNFT();
679679

680680
this.framesize = this.width * this.height;
681-
console.log(Module)
682681

683-
this.videoFramePtr = _malloc(this.framesize * 4);
684-
this.videoLumaPtr = _malloc(this.framesize);
682+
this.videoFramePtr = Module._malloc(this.framesize * 4);
683+
this.videoLumaPtr = Module._malloc(this.framesize);
685684
this.videoLuma = new Uint8Array(this.framesize);
686685

687686
this.camera_mat = artoolkitNFT.getCameraLens(this.id);

0 commit comments

Comments
 (0)