Merge pull request #649 from twpayne/fix-canvas-tiles-webgl

Use negative frame index as frame marker
This commit is contained in:
Tom Payne
2013-04-23 07:16:52 -07:00

View File

@@ -521,7 +521,7 @@ ol.renderer.webgl.Map.prototype.renderFrame = function(frameState) {
this.focus_ = frameState.focus;
this.textureCache_.set(frameState.index.toString(), null);
this.textureCache_.set((-frameState.index).toString(), null);
++this.textureCacheFrameMarkerCount_;
var layerStates = frameState.layerStates;