Skip to content

Commit 3a45a86

Browse files
WebGPUBindingUtils: Guard updateBinding() against destroyed GPU buffer (#33461)
Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
1 parent 083a11c commit 3a45a86

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/renderers/webgpu/utils/WebGPUBindingUtils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ class WebGPUBindingUtils {
190190
const array = binding.buffer; // cpu
191191
const buffer = backend.get( binding ).buffer; // gpu
192192

193+
if ( buffer === undefined ) return; // see #33461
194+
193195
const updateRanges = binding.updateRanges;
194196

195197
if ( updateRanges.length === 0 ) {

0 commit comments

Comments
 (0)