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

@@ -196,9 +196,7 @@ WebGLCircleReplay.prototype.getDeleteResourcesFunction = function(context) {
*/
WebGLCircleReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {
// get the program
const fragmentShader = fragment;
const vertexShader = vertex;
const program = context.getProgram(fragmentShader, vertexShader);
const program = context.getProgram(fragment, vertex);
// get the locations
let locations;