Browse Source

WebGPURenderer: Remove `return` on lines 258 and 626 (#25258)

* WebGPURenderer: Remove `return` on line 258

* Same in `.compute()`
Levi Pesin 2 years ago
parent
commit
3468fb75aa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/jsm/renderers/webgpu/WebGPURenderer.js

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

@@ -255,7 +255,7 @@ class WebGPURenderer {
 
 	async render( scene, camera ) {
 
-		if ( this._initialized === false ) return await this.init();
+		if ( this._initialized === false ) await this.init();
 
 		//
 
@@ -623,7 +623,7 @@ class WebGPURenderer {
 
 	async compute( ...computeNodes ) {
 
-		if ( this._initialized === false ) return await this.init();
+		if ( this._initialized === false ) await this.init();
 
 		const device = this._device;
 		const computePipelines = this._computePipelines;