Name event handlers more consistently
This commit is contained in:
@@ -42,7 +42,7 @@ ol.webgl.LayerRenderer.prototype.getMap = function() {
|
||||
|
||||
/**
|
||||
*/
|
||||
ol.webgl.LayerRenderer.prototype.handleContextLost = goog.nullFunction;
|
||||
ol.webgl.LayerRenderer.prototype.handleWebGLContextLost = goog.nullFunction;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -359,7 +359,7 @@ ol.webgl.Map.prototype.handleWebGLContextLost = function(event) {
|
||||
this.programCache_ = {};
|
||||
this.textureCache_ = {};
|
||||
goog.object.forEach(this.layerRenderers, function(layerRenderer) {
|
||||
layerRenderer.handleContextLost();
|
||||
layerRenderer.handleWebGLContextLost();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ ol.webgl.TileLayerRenderer.prototype.disposeInternal = function() {
|
||||
|
||||
/**
|
||||
*/
|
||||
ol.webgl.TileLayerRenderer.prototype.handleContextLost = function() {
|
||||
ol.webgl.TileLayerRenderer.prototype.handleWebGLContextLost = function() {
|
||||
this.texture_ = null;
|
||||
this.renderbuffer_ = null;
|
||||
this.framebuffer_ = null;
|
||||
|
||||
Reference in New Issue
Block a user