mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Typo fixes.
This commit is contained in:
parent
08d1d8b677
commit
c28cfc4548
1 changed files with 3 additions and 3 deletions
|
@ -92,8 +92,8 @@ ParticleRenderer.prototype.init = function ()
|
|||
var vertexArray = new VertexArray(gl,
|
||||
CreateBuffer(gl, gl.ARRAY_BUFFER, gl.STREAM_DRAW, null, vertexDataBuffer.getByteCapacity()),
|
||||
[
|
||||
CreateAttributeDesc(gl, program, 'a_position', 2, gl.FLOAT, false, ParticleRendererRenderer.VERTEX_SIZE, 0),
|
||||
CreateAttributeDesc(gl, program, 'a_tex_coord', 2, gl.FLOAT, false, ParticleRendererRenderer.VERTEX_SIZE, 8)
|
||||
CreateAttribDesc(gl, program, 'a_position', 2, gl.FLOAT, false, ParticleRenderer.VERTEX_SIZE, 0),
|
||||
CreateAttribDesc(gl, program, 'a_tex_coord', 2, gl.FLOAT, false, ParticleRenderer.VERTEX_SIZE, 8)
|
||||
]
|
||||
);
|
||||
var viewMatrixLocation = gl.getUniformLocation(program, 'u_view_matrix');
|
||||
|
@ -243,7 +243,7 @@ ParticleRenderer.prototype.resize = function (width, height)
|
|||
}
|
||||
gl.viewport(0, 0, this.width, this.height);
|
||||
gl.uniformMatrix4fv(
|
||||
viewMatrixLocation,
|
||||
this.viewMatrixLocation,
|
||||
false,
|
||||
new Float32Array([
|
||||
2 / this.view.width, 0, 0, 0,
|
||||
|
|
Loading…
Reference in a new issue