More detailed texture upload logging

This commit is contained in:
Tom Payne
2012-10-04 11:14:59 +02:00
parent 21ab556d2f
commit d35df1d53b
+5 -1
View File
@@ -481,12 +481,16 @@ ol.renderer.webgl.TileLayer.prototype.render = function() {
ol.MapEventType.POSTRENDER, ol.MapEventType.POSTRENDER,
goog.partial(function(mapRenderer, imagesToLoad) { goog.partial(function(mapRenderer, imagesToLoad) {
if (goog.DEBUG) { if (goog.DEBUG) {
this.logger.info('uploading textures'); this.logger.info(
'uploading ' + imagesToLoad.length + ' textures');
} }
goog.array.forEach(imagesToLoad, function(image) { goog.array.forEach(imagesToLoad, function(image) {
mapRenderer.bindImageTexture( mapRenderer.bindImageTexture(
image, goog.webgl.LINEAR, goog.webgl.LINEAR); image, goog.webgl.LINEAR, goog.webgl.LINEAR);
}); });
if (goog.DEBUG) {
this.logger.info('uploaded textures');
}
}, mapRenderer, imagesToLoad)); }, mapRenderer, imagesToLoad));
animate = true; animate = true;
} }