Merge pull request #469 from twpayne/webgl-context-lost

Abort rendering when WebGL context is lost
This commit is contained in:
Tom Payne
2013-04-04 15:16:14 -07:00

View File

@@ -541,6 +541,10 @@ ol.renderer.webgl.Map.prototype.renderFrame = function(frameState) {
var gl = this.getGL();
if (gl.isContextLost()) {
return false;
}
if (goog.isNull(frameState)) {
if (this.renderedVisible_) {
goog.style.showElement(this.canvas_, false);