Browse Source

Remove the query upon completion (#28428)

nmzik 1 năm trước cách đây
mục cha
commit
2de0ee431e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      examples/jsm/utils/GPUStatsPanel.js

+ 2 - 0
examples/jsm/utils/GPUStatsPanel.js

@@ -56,6 +56,8 @@ export class GPUStatsPanel extends Stats.Panel {
 
 					}
 
+					gl.deleteQuery( query );
+
 					this.activeQueries --;