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

WebGPURenderer: Replace outdated context type argument. (#22210)

Michael Herzog 4 жил өмнө
parent
commit
66c4cfc6a9

+ 1 - 1
examples/jsm/renderers/webgpu/WebGPURenderer.js

@@ -162,7 +162,7 @@ class WebGPURenderer {
 
 		const compiler = await glslang();
 
-		const context = ( parameters.context !== undefined ) ? parameters.context : this.domElement.getContext( 'gpupresent' );
+		const context = ( parameters.context !== undefined ) ? parameters.context : this.domElement.getContext( 'webgpu' );
 
 		const swapChain = context.configure( {
 			device: device,