Skip to content

Commit

Permalink
Merge branch 'master' into fix-transition-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey authored Dec 1, 2016
2 parents cf3b96e + 044144e commit 90d21ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gl/quadFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var gl_quadFeature = function (arg) {
'uniform highp vec2 crop;',
'void main(void) {',
' mediump vec4 color = texture2D(sampler2d, iTextureCoord);',
' if (iTextureCoord.s > crop.s || 1.0 - iTextureCoord.t > crop.t) {',
' if ((crop.s < 1.0 && iTextureCoord.s > crop.s) || (crop.t < 1.0 && 1.0 - iTextureCoord.t > crop.t)) {',
' discard;',
' }',
' color.w *= opacity;',
Expand Down

0 comments on commit 90d21ad

Please sign in to comment.