Skip to content

Commit 44bbf1a

Browse files
authored
Merge pull request #2145 from tbirdso/skybox-vr
docs(SkyboxViewer): fix SkyboxViewer VR example
2 parents 027b6dd + 20b2509 commit 44bbf1a

File tree

1 file changed

+2
-2
lines changed
  • Examples/Applications/SkyboxViewer

1 file changed

+2
-2
lines changed

Examples/Applications/SkyboxViewer/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ function createVisualization(container, mapReader) {
292292
document.querySelector('body').appendChild(button);
293293
button.addEventListener('click', () => {
294294
if (button.textContent === 'Send To VR') {
295-
fullScreenRenderer.getOpenGLRenderWindow().startVR();
295+
fullScreenRenderer.getApiSpecificRenderWindow().startVR();
296296
button.textContent = 'Return From VR';
297297
} else {
298-
fullScreenRenderer.getOpenGLRenderWindow().stopVR();
298+
fullScreenRenderer.getApiSpecificRenderWindow().stopVR();
299299
button.textContent = 'Send To VR';
300300
}
301301
});

0 commit comments

Comments
 (0)