Skip to content

Commit 35201d0

Browse files
committed
WebGLTextureUtils: Remove flag.
1 parent 36cb3ff commit 35201d0

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/renderers/webgl-fallback/utils/WebGLTextureUtils.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,7 @@ class WebGLTextureUtils {
409409

410410
backend.set( texture, {
411411
textureGPU,
412-
glTextureType,
413-
isDefault: true
412+
glTextureType
414413
} );
415414

416415
}
@@ -741,20 +740,14 @@ class WebGLTextureUtils {
741740
* Destroys the GPU data for the given texture object.
742741
*
743742
* @param {Texture} texture - The texture.
744-
* @param {boolean} [isDefaultTexture=false] - Whether the texture uses a default GPU texture or not.
745743
*/
746-
destroyTexture( texture, isDefaultTexture = false ) {
744+
destroyTexture( texture ) {
747745

748746
const { gl, backend } = this;
749747
const { textureGPU, renderTarget } = backend.get( texture );
750748

751749
this.deallocateRenderBuffers( renderTarget );
752-
753-
if ( isDefaultTexture === false ) {
754-
755-
gl.deleteTexture( textureGPU );
756-
757-
}
750+
gl.deleteTexture( textureGPU );
758751

759752
backend.delete( texture );
760753

0 commit comments

Comments
 (0)