diff --git a/src/components/image-plus.js b/src/components/image-plus.js index 150552bf1c44613f7d618e6f735858fadcff2ced..08126054732c9808d8041d6a33fb4bf221134ccd 100644 --- a/src/components/image-plus.js +++ b/src/components/image-plus.js @@ -3,6 +3,9 @@ import GIFWorker from "../workers/gifparsing.worker.js"; class GIFTexture extends THREE.Texture { constructor(frames, delays, disposals) { super(document.createElement("canvas")); + this.image.width = frames[0].width; + this.image.height = frames[0].height; + this._ctx = this.image.getContext("2d"); this.generateMipmaps = false;