Only iterate over ready, visible layers

This commit is contained in:
Tom Payne
2012-07-27 23:35:00 +02:00
parent 6ceeac2427
commit ade0d17541
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -537,7 +537,7 @@ ol.webgl.Map.prototype.renderInternal = function() {
this.locations_.aTexCoord, 2, goog.webgl.FLOAT, false, 16, 8);
gl.uniform1i(this.locations_.uTexture, 0);
this.forEachVisibleLayer(function(layer, layerRenderer) {
this.forEachReadyVisibleLayer(function(layer, layerRenderer) {
gl.uniformMatrix4fv(
this.locations_.uMatrix, false, layerRenderer.getMatrix());
gl.uniform1f(this.locations_.uBrightness, layer.getBrightness());