diff --git a/panorama-viewer.js b/panorama-viewer.js index c74d46b..e29f506 100644 --- a/panorama-viewer.js +++ b/panorama-viewer.js @@ -133,7 +133,7 @@ }; let viewer = document.getElementById("viewer"); - let gl = viewer.getContext("webgl"); + let gl = viewer.getContext("webgl2"); let program = initShaderProgram(gl); let modelMatrixLocation = gl.getUniformLocation(program, "modelMatrix");