Skip to content

Commit

Permalink
docs: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Beldaa authored and WoodNeck committed Jul 2, 2021
1 parent 10faef8 commit a4f518d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/PanoImageRenderer/PanoImageRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/PanoImageRenderer/renderer/CylinderRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/YawPitchControl/ScreenRotationAngle.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit a4f518d

Please sign in to comment.