소스 검색

WebGPUBackend: Fix occlusion query result

sunag 1 년 전
부모
커밋
d963e6b307
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPUBackend.js

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

@@ -551,7 +551,7 @@ class WebGPUBackend extends Backend {
 
 			for ( let i = 0; i < currentOcclusionQueryObjects.length; i ++ ) {
 
-				if ( results[ i ] !== 0 ) {
+				if ( results[ i ] !== 0n ) {
 
 					occluded.add( currentOcclusionQueryObjects[ i ] );