Skip to content

Commit 465c491

Browse files
committed
Fixes comments
1 parent 71f528e commit 465c491

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Packages/webxr/Runtime/Plugins/WebGL/webxr.jspre

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ void main()
6262
return;
6363
}`
6464
GL.getSourceOld = GL.getSource;
65+
// Fix for an issue of wrong values in draw display shader
6566
GL.getSource = function (shader, count, string, length) {
6667
var source = GL.getSourceOld(shader, count, string, length);
6768
if (shaderBug == source) {
@@ -666,6 +667,7 @@ void main()
666667
return thisXRMananger.xrSession.requestAnimationFrame(function (time, xrFrame) {
667668
thisXRMananger.animate(xrFrame);
668669
func(time);
670+
// Fix for an issue of switch to setTimeout instead of rAF
669671
if (thisXRMananger.BrowserObject.mainLoop.timingMode == 0) {
670672
_emscripten_set_main_loop_timing(1, 1);
671673
}

0 commit comments

Comments
 (0)