Skip to content

Commit 71eb11b

Browse files
Mugen87whatisor
authored andcommitted
WebGPUTextureUtils: Fix dispose() of VideoTexture. (mrdoob#29944)
1 parent d3575fc commit 71eb11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderers/webgpu/utils/WebGPUTextureUtils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class WebGPUTextureUtils {
230230
const backend = this.backend;
231231
const textureData = backend.get( texture );
232232

233-
textureData.texture.destroy();
233+
if ( textureData.texture !== undefined ) textureData.texture.destroy();
234234

235235
if ( textureData.msaaTexture !== undefined ) textureData.msaaTexture.destroy();
236236

0 commit comments

Comments
 (0)