فهرست منبع

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 ] );