File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
src/renderers/webgl-fallback/utils Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments