浏览代码

WebGPUBackground: Clean up.

Mugen87 4 年之前
父节点
当前提交
7a096e83c1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPUBackground.js

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

@@ -33,7 +33,7 @@ class WebGPUBackground {
 			_clearColor.copy( renderer._clearColor );
 			_clearColor.copy( renderer._clearColor );
 			_clearAlpha = renderer._clearAlpha;
 			_clearAlpha = renderer._clearAlpha;
 
 
-		} else if ( background !== null && background.isColor === true ) {
+		} else if ( background.isColor === true ) {
 
 
 			// background is an opaque color
 			// background is an opaque color