Fix some stupid bugs in ol.TileBounds

This commit is contained in:
Tom Payne
2012-07-22 12:18:56 +02:00
parent 8987dc8607
commit ea623b7be6
3 changed files with 40 additions and 14 deletions

View File

@@ -291,7 +291,7 @@ ol.webgl.TileLayerRenderer.prototype.render = function() {
tileBounds.minY,
tileBounds.minX + nTilesX - 1,
tileBounds.minY + nTilesY - 1);
goog.asserts.assert(framebufferTileBounds.contains(tileBounds));
goog.asserts.assert(framebufferTileBounds.containsTileBounds(tileBounds));
this.bindFramebuffer_(framebufferDimension);
gl.viewport(0, 0, framebufferDimension, framebufferDimension);