Skip to content

Commit d7db8ca

Browse files
committed
docs(SkyboxViewer): fix SkyboxViewer VR example for WebGPU support
Due to WebGPU support, the method name to access the WebGL view has changed. See similar changes at f2457f0.
1 parent b92ad54 commit d7db8ca

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)