|
|
@@ -822,6 +822,15 @@ class WebGPUBackend extends Backend {
|
|
|
|
|
|
renderContextData.lastOcclusionObject = null;
|
|
|
|
|
|
+ } else if ( renderContextData.lastOcclusionObject !== undefined ) {
|
|
|
+
|
|
|
+ // invalidate if there is a stale query
|
|
|
+
|
|
|
+ renderContextData.lastOcclusionObject = undefined;
|
|
|
+
|
|
|
+ renderContextData.occlusionQuerySet.destroy();
|
|
|
+ renderContextData.occlusionQuerySet = undefined;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
let descriptor;
|