Delete WebGL resources used at postcompose time

This commit is contained in:
Éric Lemoine
2014-11-21 16:04:04 +01:00
parent 37f91690f1
commit 857a8ca2bb

View File

@@ -302,6 +302,7 @@ ol.renderer.webgl.Map.prototype.dispatchComposeEvent_ =
replayGroup.replay(context, center, resolution, rotation, size, extent,
pixelRatio, opacity, brightness, contrast, hue, saturation, {});
}
replayGroup.getDeleteResourcesFunction(context)();
vectorContext.flush();
this.replayGroup = replayGroup;