Don't create useless temporary variables

This commit is contained in:
Frederic Junod
2018-02-09 09:17:40 +01:00
parent e25e61c3b7
commit 2b6a3aacef
5 changed files with 5 additions and 16 deletions

View File

@@ -148,10 +148,7 @@ WebGLLayerRenderer.prototype.composeFrame = function(frameState, layerState, con
const gl = context.getGL();
const fragmentShader = fragment;
const vertexShader = vertex;
const program = context.getProgram(fragmentShader, vertexShader);
const program = context.getProgram(fragment, vertex);
let locations;
if (!this.defaultLocations_) {