Refactor context lost handling
This commit is contained in:
@@ -148,6 +148,16 @@ ol.webgl.TileLayerRenderer.prototype.disposeInternal = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
ol.webgl.TileLayerRenderer.prototype.handleContextLost = function() {
|
||||
this.texture_ = null;
|
||||
this.renderbuffer_ = null;
|
||||
this.framebuffer_ = null;
|
||||
this.framebufferSize_ = null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @protected
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user