Skip to content

Commit

Permalink
bug fix (safari)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrsb committed Aug 14, 2020
1 parent b206475 commit be75f0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ async function loadModel(modelName) {
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE)
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR)
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST_MIPMAP_LINEAR)
gl.generateMipmap(gl.TEXTURE_2D)
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR)
gl.bindTexture(gl.TEXTURE_2D, null)
events.onLoad--
if (events.onLoad === 0) $('body').removeClass('loading')
Expand Down

0 comments on commit be75f0b

Please sign in to comment.