Don't create useless temporary variables
This commit is contained in:
@@ -196,9 +196,7 @@ WebGLCircleReplay.prototype.getDeleteResourcesFunction = function(context) {
|
|||||||
*/
|
*/
|
||||||
WebGLCircleReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {
|
WebGLCircleReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {
|
||||||
// get the program
|
// get the program
|
||||||
const fragmentShader = fragment;
|
const program = context.getProgram(fragment, vertex);
|
||||||
const vertexShader = vertex;
|
|
||||||
const program = context.getProgram(fragmentShader, vertexShader);
|
|
||||||
|
|
||||||
// get the locations
|
// get the locations
|
||||||
let locations;
|
let locations;
|
||||||
|
|||||||
@@ -439,9 +439,7 @@ WebGLLineStringReplay.prototype.getDeleteResourcesFunction = function(context) {
|
|||||||
*/
|
*/
|
||||||
WebGLLineStringReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {
|
WebGLLineStringReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {
|
||||||
// get the program
|
// get the program
|
||||||
const fragmentShader = fragment;
|
const program = context.getProgram(fragment, vertex);
|
||||||
const vertexShader = vertex;
|
|
||||||
const program = context.getProgram(fragmentShader, vertexShader);
|
|
||||||
|
|
||||||
// get the locations
|
// get the locations
|
||||||
let locations;
|
let locations;
|
||||||
|
|||||||
@@ -873,9 +873,7 @@ WebGLPolygonReplay.prototype.getDeleteResourcesFunction = function(context) {
|
|||||||
*/
|
*/
|
||||||
WebGLPolygonReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {
|
WebGLPolygonReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {
|
||||||
// get the program
|
// get the program
|
||||||
const fragmentShader = fragment;
|
const program = context.getProgram(fragment, vertex);
|
||||||
const vertexShader = vertex;
|
|
||||||
const program = context.getProgram(fragmentShader, vertexShader);
|
|
||||||
|
|
||||||
// get the locations
|
// get the locations
|
||||||
let locations;
|
let locations;
|
||||||
|
|||||||
@@ -271,9 +271,7 @@ WebGLTextureReplay.prototype.createTextures = function(textures, images, texture
|
|||||||
*/
|
*/
|
||||||
WebGLTextureReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {
|
WebGLTextureReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {
|
||||||
// get the program
|
// get the program
|
||||||
const fragmentShader = fragment;
|
const program = context.getProgram(fragment, vertex);
|
||||||
const vertexShader = vertex;
|
|
||||||
const program = context.getProgram(fragmentShader, vertexShader);
|
|
||||||
|
|
||||||
// get the locations
|
// get the locations
|
||||||
let locations;
|
let locations;
|
||||||
|
|||||||
@@ -148,10 +148,7 @@ WebGLLayerRenderer.prototype.composeFrame = function(frameState, layerState, con
|
|||||||
|
|
||||||
const gl = context.getGL();
|
const gl = context.getGL();
|
||||||
|
|
||||||
const fragmentShader = fragment;
|
const program = context.getProgram(fragment, vertex);
|
||||||
const vertexShader = vertex;
|
|
||||||
|
|
||||||
const program = context.getProgram(fragmentShader, vertexShader);
|
|
||||||
|
|
||||||
let locations;
|
let locations;
|
||||||
if (!this.defaultLocations_) {
|
if (!this.defaultLocations_) {
|
||||||
|
|||||||
Reference in New Issue
Block a user