Skip to content

Commit 9b78c4b

Browse files
committed
set default uniforms on filters outside of WebGL mode
1 parent 3d9156b commit 9b78c4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/image/filterRenderer2D.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ class FilterRenderer2D {
234234
this._shader.setUniform('canvasSize', [this.pInst.width, this.pInst.height]);
235235
this._shader.setUniform('radius', Math.max(1, this.filterParameter));
236236
this._shader.setUniform('filterParameter', this.filterParameter);
237-
237+
this._shader.setDefaultUniforms();
238+
238239
this.pInst.states.setValue('rectMode', constants.CORNER);
239240
this.pInst.states.setValue('imageMode', constants.CORNER);
240241
this.pInst.blendMode(constants.BLEND);

0 commit comments

Comments
 (0)