1
0
Эх сурвалжийг харах

WebGPUBindingUtils: Guard updateBinding() against destroyed GPU buffer (#33461)

Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
Renaud Rohlinger 1 сар өмнө
parent
commit
3a45a864c2

+ 2 - 0
src/renderers/webgpu/utils/WebGPUBindingUtils.js

@@ -190,6 +190,8 @@ class WebGPUBindingUtils {
 		const array = binding.buffer; // cpu
 		const buffer = backend.get( binding ).buffer; // gpu
 
+		if ( buffer === undefined ) return; // see #33461
+
 		const updateRanges = binding.updateRanges;
 
 		if ( updateRanges.length === 0 ) {

粤ICP备19079148号