Explorar el Código

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

Michael Herzog hace 4 años
padre
commit
66c4cfc6a9
Se han modificado 1 ficheros con 1 adiciones y 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,