Remove a couple of duplicate variable assignments

This commit is contained in:
Alex Ford 2017-06-26 19:12:46 +01:00
parent 6deffce156
commit 7167120d01
2 changed files with 0 additions and 3 deletions

View file

@ -167,7 +167,6 @@ EffectRenderer.prototype = {
renderEffect: function (gameObject, camera, texture, textureWidth, textureHeight) renderEffect: function (gameObject, camera, texture, textureWidth, textureHeight)
{ {
var tempMatrix = this.tempMatrix; var tempMatrix = this.tempMatrix;
var alpha = 16777216;
var vertexDataBuffer = this.vertexDataBuffer; var vertexDataBuffer = this.vertexDataBuffer;
var vertexBufferObjectF32 = vertexDataBuffer.floatView; var vertexBufferObjectF32 = vertexDataBuffer.floatView;
var vertexBufferObjectU32 = vertexDataBuffer.uintView; var vertexBufferObjectU32 = vertexDataBuffer.uintView;

View file

@ -435,7 +435,6 @@ SpriteBatch.prototype = {
addSpriteTexture: function (gameObject, camera, texture, textureWidth, textureHeight) addSpriteTexture: function (gameObject, camera, texture, textureWidth, textureHeight)
{ {
var tempMatrix = this.tempMatrix; var tempMatrix = this.tempMatrix;
var alpha = 16777216;
var vertexDataBuffer = this.vertexDataBuffer; var vertexDataBuffer = this.vertexDataBuffer;
var vertexBufferObjectF32 = vertexDataBuffer.floatView; var vertexBufferObjectF32 = vertexDataBuffer.floatView;
var vertexBufferObjectU32 = vertexDataBuffer.uintView; var vertexBufferObjectU32 = vertexDataBuffer.uintView;
@ -528,7 +527,6 @@ SpriteBatch.prototype = {
{ {
var tempMatrix = this.tempMatrix; var tempMatrix = this.tempMatrix;
var frame = gameObject.frame; var frame = gameObject.frame;
var alpha = 16777216;
var forceFlipY = (frame.texture.source[frame.sourceIndex].glTexture.isRenderTexture ? true : false); var forceFlipY = (frame.texture.source[frame.sourceIndex].glTexture.isRenderTexture ? true : false);
var flipX = gameObject.flipX; var flipX = gameObject.flipX;
var flipY = gameObject.flipY ^ forceFlipY; var flipY = gameObject.flipY ^ forceFlipY;