Refactor context lost handling

This commit is contained in:
Tom Payne
2012-07-17 12:00:43 +02:00
parent 495630355a
commit 253d62763f
3 changed files with 19 additions and 13 deletions

View File

@@ -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
*/