Skip to content

Commit 3e8df0a

Browse files
committed
*TimestampQueryPool: Fix frame property reference - #31869
1 parent fc8fc0d commit 3e8df0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/renderers/webgl-fallback/utils/WebGLTimestampQueryPool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class WebGLTimestampQueryPool extends TimestampQueryPool {
244244
}
245245

246246
// Return the total duration of the last frame
247-
const totalDuration = framesDuration[ this.frames[ this.frames.length - 1 ] ];
247+
const totalDuration = framesDuration[ frames[ frames.length - 1 ] ];
248248

249249
// Store the last valid result
250250
this.lastValue = totalDuration;

src/renderers/webgpu/utils/WebGPUTimestampQueryPool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class WebGPUTimestampQueryPool extends TimestampQueryPool {
209209
}
210210

211211
// Return the total duration of the last frame
212-
const totalDuration = framesDuration[ this.frames[ this.frames.length - 1 ] ];
212+
const totalDuration = framesDuration[ frames[ frames.length - 1 ] ];
213213

214214
this.resultBuffer.unmap();
215215
this.lastValue = totalDuration;

0 commit comments

Comments
 (0)