Explorar o código

WebGPUBackend: Fix occlusion query result

sunag %!s(int64=2) %!d(string=hai) anos
pai
achega
d963e6b307
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ] );
 

粤ICP备19079148号