Skip to content

Commit 7005528

Browse files
committed
Fix broken gifs in WebGL mode
1 parent 270eb1c commit 7005528

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/webgl/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export function setWebGLUniformValue(shader, uniform, data, getTexture, gl) {
281281
"You're trying to use a number as the data for a texture." +
282282
"Please use a texture.",
283283
);
284-
return this;
284+
return;
285285
}
286286
gl.activeTexture(data);
287287
gl.uniform1i(location, data);
@@ -290,7 +290,7 @@ export function setWebGLUniformValue(shader, uniform, data, getTexture, gl) {
290290
uniform.texture = data instanceof Texture ? data : getTexture(data);
291291
gl.uniform1i(location, uniform.samplerIndex);
292292
if (uniform.texture.src.gifProperties) {
293-
uniform.texture.src._animateGif(this._pInst);
293+
uniform.texture.src._animateGif(shader._renderer._pInst);
294294
}
295295
}
296296
break;

0 commit comments

Comments
 (0)