More detailed texture upload logging
This commit is contained in:
1 parent
21ab556d2f
commit
d35df1d53b
1 file changed
+5
-1
@@ -481,12 +481,16 @@ ol.renderer.webgl.TileLayer.prototype.render = function() {
|
||||
ol.MapEventType.POSTRENDER,
|
||||
goog.partial(function(mapRenderer, imagesToLoad) {
|
||||
if (goog.DEBUG) {
|
||||
this.logger.info('uploading textures');
|
||||
this.logger.info(
|
||||
'uploading ' + imagesToLoad.length + ' textures');
|
||||
}
|
||||
goog.array.forEach(imagesToLoad, function(image) {
|
||||
mapRenderer.bindImageTexture(
|
||||
image, goog.webgl.LINEAR, goog.webgl.LINEAR);
|
||||
});
|
||||
if (goog.DEBUG) {
|
||||
this.logger.info('uploaded textures');
|
||||
}
|
||||
}, mapRenderer, imagesToLoad));
|
||||
animate = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user