Skip to content

Commit 84967f4

Browse files
authored
Fix profiler undefined
1 parent c396194 commit 84967f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/tw-frame-loop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class FrameLoop {
9191
if (this.runtime.profiler !== null) {
9292
if (rendererDrawProfilerId === -1) {
9393
rendererDrawProfilerId =
94-
this.profiler.idByName('RenderWebGL.draw');
94+
this.runtime.profiler.idByName('RenderWebGL.draw');
9595
}
9696
this.runtime.profiler.start(rendererDrawProfilerId);
9797
}

0 commit comments

Comments
 (0)