Explorar o código

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

Michael Herzog %!s(int64=4) %!d(string=hai) anos
pai
achega
66c4cfc6a9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPURenderer.js

+ 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,