Flush the vector context after replaying the batch

This commit is contained in:
Éric Lemoine
2014-06-26 14:06:56 +02:00
parent ba2d49d715
commit 6cf4c95762

View File

@@ -119,11 +119,11 @@ ol.renderer.canvas.Map.prototype.dispatchComposeEvent_ =
replayGroup, frameState, context, null);
map.dispatchEvent(composeEvent);
replayGroup.finish();
vectorContext.flush();
if (!replayGroup.isEmpty()) {
replayGroup.replay(context, extent, pixelRatio, this.transform_,
rotation, {});
}
vectorContext.flush();
this.replayGroup = replayGroup;
}
};