Abort rendering when WebGL context is lost

This commit is contained in:
Tom Payne
2013-04-05 00:14:10 +02:00
parent 9f689a0809
commit b32a2e101c

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);