Browse Source

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

Michael Herzog 4 years ago
parent
commit
66c4cfc6a9
1 changed files with 1 additions and 1 deletions
  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,