Skip to content

Commit

Permalink
refine and remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
aardgoose committed Oct 23, 2023
1 parent 1a05aa9 commit c46444c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions examples/jsm/renderers/webgl/WebGLBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,7 @@ class WebGLBackend extends Backend {
generateMipmaps( texture ) {

const { gl } = this;
const { glTextureType } = this.get( texture );

this._bindTexture( texture );
const { glTextureType } = this._bindTexture( texture );

gl.generateMipmap( glTextureType );

Expand Down Expand Up @@ -762,12 +760,8 @@ class WebGLBackend extends Backend {

} else if ( binding.isSampledTexture ) {

const { textureGPU, glTextureType } = this.get( binding.texture );

this.set( binding, {
index: textureIndex ++,
textureGPU,
glTextureType
index: textureIndex ++
} );

}
Expand Down Expand Up @@ -942,6 +936,8 @@ class WebGLBackend extends Backend {

}

return textureData;

}

}
Expand Down

0 comments on commit c46444c

Please sign in to comment.