Add missing type casts for goog.partial

This commit is contained in:
Frederic Junod
2016-02-03 15:33:02 +01:00
parent 81750ea6b1
commit 17b667d6e0
5 changed files with 14 additions and 9 deletions
@@ -139,7 +139,7 @@ ol.renderer.webgl.ImageLayer.prototype.prepareFrame = function(frameState, layer
texture = this.createTexture_(image_);
if (this.texture) {
frameState.postRenderFunctions.push(
goog.partial(
/** @type {ol.PostRenderFunction} */ (goog.partial(
/**
* @param {WebGLRenderingContext} gl GL.
* @param {WebGLTexture} texture Texture.
@@ -148,7 +148,7 @@ ol.renderer.webgl.ImageLayer.prototype.prepareFrame = function(frameState, layer
if (!gl.isContextLost()) {
gl.deleteTexture(texture);
}
}, gl, this.texture));
}, gl, this.texture)));
}
}
}