Set frame state immediately after rendering

This commit is contained in:
Tom Payne
2013-01-18 16:35:23 +01:00
parent 9cf314fd64
commit 7babfebef9

View File

@@ -664,6 +664,8 @@ ol.Map.prototype.renderFrame_ = function(time) {
}
this.renderer_.renderFrame(frameState);
this.frameState_ = frameState;
this.dirty_ = false;
if (!goog.isNull(frameState)) {
if (frameState.animate) {
@@ -672,8 +674,6 @@ ol.Map.prototype.renderFrame_ = function(time) {
Array.prototype.push.apply(
this.postRenderFunctions_, frameState.postRenderFunctions);
}
this.frameState_ = frameState;
this.dirty_ = false;
this.dispatchEvent(
new ol.MapEvent(ol.MapEventType.POSTRENDER, this, frameState));