diff --git a/src/PanoImageRenderer/PanoImageRenderer.ts b/src/PanoImageRenderer/PanoImageRenderer.ts index e4a06e96c..462e51aad 100644 --- a/src/PanoImageRenderer/PanoImageRenderer.ts +++ b/src/PanoImageRenderer/PanoImageRenderer.ts @@ -595,7 +595,7 @@ class PanoImageRenderer extends Component<{ const shaderProgram = WebGLUtils.createProgram(gl, vertexShader, fragmentShader); if (!shaderProgram) { - throw new Error(`Failed to intialize shaders: ${WebGLUtils.getErrorNameFromWebGLErrorCode(gl.getError())}`); + throw new Error(`Failed to initialize shaders: ${WebGLUtils.getErrorNameFromWebGLErrorCode(gl.getError())}`); } gl.useProgram(shaderProgram); @@ -730,7 +730,7 @@ class PanoImageRenderer extends Component<{ this._renderer.updateShaderData({imageAspectRatio}); } - // intialize shader buffers after image is loaded.(by updateShaderData) + // initialize shader buffers after image is loaded.(by updateShaderData) // because buffer may be differ by image size.(eg. CylinderRenderer) this._initBuffers(); diff --git a/src/PanoImageRenderer/renderer/CylinderRenderer.ts b/src/PanoImageRenderer/renderer/CylinderRenderer.ts index be4297f03..4c009cf8d 100644 --- a/src/PanoImageRenderer/renderer/CylinderRenderer.ts +++ b/src/PanoImageRenderer/renderer/CylinderRenderer.ts @@ -113,7 +113,7 @@ void main(void) { halfCylinderY = 0.5; // Range of cylinder is [-0.5, 0.5] to make height to 1. } - // intialize shader data before update + // initialize shader data before update textureCoordData.length = 0; vertexPositionData.length = 0; indexData.length = 0; diff --git a/test/unit/YawPitchControl/ScreenRotationAngle.spec.js b/test/unit/YawPitchControl/ScreenRotationAngle.spec.js index 7a9136a18..a7d86d8d0 100644 --- a/test/unit/YawPitchControl/ScreenRotationAngle.spec.js +++ b/test/unit/YawPitchControl/ScreenRotationAngle.spec.js @@ -169,7 +169,7 @@ describe("ScreenRotationAngle", () => { }); describe("#unref", () => { - it("should intialize angle & not affected by deviceorientation.", done => { + it("should initialize angle & not affected by deviceorientation.", done => { // Given const sr = new ScreenRotationAngle();