More detailed texture upload logging
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user