Skip to content

Commit 7167120

Browse files
committed
Remove a couple of duplicate variable assignments
1 parent 6deffce commit 7167120

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

v3/src/renderer/webgl/renderers/effectrenderer/EffectRenderer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ EffectRenderer.prototype = {
167167
renderEffect: function (gameObject, camera, texture, textureWidth, textureHeight)
168168
{
169169
var tempMatrix = this.tempMatrix;
170-
var alpha = 16777216;
171170
var vertexDataBuffer = this.vertexDataBuffer;
172171
var vertexBufferObjectF32 = vertexDataBuffer.floatView;
173172
var vertexBufferObjectU32 = vertexDataBuffer.uintView;

v3/src/renderer/webgl/renderers/spritebatch/SpriteBatch.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ SpriteBatch.prototype = {
435435
addSpriteTexture: function (gameObject, camera, texture, textureWidth, textureHeight)
436436
{
437437
var tempMatrix = this.tempMatrix;
438-
var alpha = 16777216;
439438
var vertexDataBuffer = this.vertexDataBuffer;
440439
var vertexBufferObjectF32 = vertexDataBuffer.floatView;
441440
var vertexBufferObjectU32 = vertexDataBuffer.uintView;
@@ -528,7 +527,6 @@ SpriteBatch.prototype = {
528527
{
529528
var tempMatrix = this.tempMatrix;
530529
var frame = gameObject.frame;
531-
var alpha = 16777216;
532530
var forceFlipY = (frame.texture.source[frame.sourceIndex].glTexture.isRenderTexture ? true : false);
533531
var flipX = gameObject.flipX;
534532
var flipY = gameObject.flipY ^ forceFlipY;

0 commit comments

Comments
 (0)