Skip to content

Commit

Permalink
fixed the glShaders (#4023)
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur authored Jun 20, 2017
1 parent 5de811f commit f99b0d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/filters/base_filter.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ fabric.Image.filters.BaseFilter = fabric.util.createClass(/** @lends fabric.Imag

var attributeLocations = this.getAttributeLocations(gl, program);
var uniformLocations = this.getUniformLocations(gl, program) || { };
uniformLocations.uWidth = gl.getUniformLocation(program, 'uWidth');
uniformLocations.uHeight = gl.getUniformLocation(program, 'uHeight');
uniformLocations.uStepW = gl.getUniformLocation(program, 'uStepW');
uniformLocations.uStepH = gl.getUniformLocation(program, 'uStepH');
return {
program: program,
attributeLocations: attributeLocations,
Expand Down
4 changes: 2 additions & 2 deletions src/filters/pixelate_filter.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
getUniformLocations: function(gl, program) {
return {
uBlocksize: gl.getUniformLocation(program, 'uBlocksize'),
uWidth: gl.getUniformLocation(program, 'uWidth'),
uHeight: gl.getUniformLocation(program, 'uHeight'),
uStepW: gl.getUniformLocation(program, 'uStepW'),
uStepH: gl.getUniformLocation(program, 'uStepH'),
};
},

Expand Down

0 comments on commit f99b0d7

Please sign in to comment.