Better code indentation

This commit is contained in:
Frederic Junod
2018-03-05 10:33:40 +01:00
parent 95d94052a7
commit 500a017faf
17 changed files with 71 additions and 123 deletions

View File

@@ -224,10 +224,8 @@ WebGLContext.prototype.getShader = function(shaderObject) {
* @param {ol.webgl.Vertex} vertexShaderObject Vertex shader.
* @return {WebGLProgram} Program.
*/
WebGLContext.prototype.getProgram = function(
fragmentShaderObject, vertexShaderObject) {
const programKey =
getUid(fragmentShaderObject) + '/' + getUid(vertexShaderObject);
WebGLContext.prototype.getProgram = function(fragmentShaderObject, vertexShaderObject) {
const programKey = getUid(fragmentShaderObject) + '/' + getUid(vertexShaderObject);
if (programKey in this.programCache_) {
return this.programCache_[programKey];
} else {