Fixed blendTile()-related blurriness issue

We were setting drawer.updateAgain to the result of each blendTile(),
which meant it was keeping only the last result. Instead we should have
been only setting it to true if blendTile returned true, but never
setting it to false. Fixed.
This commit is contained in:
Ian Gilman 2013-05-29 11:18:25 -07:00
parent 96d8cae6e2
commit 1d51b72785

View File

@ -709,8 +709,7 @@ function updateTile( drawer, drawLevel, haveDrawn, x, y, level, levelOpacity, le
); );
if ( tile.loaded ) { if ( tile.loaded ) {
var needsUpdate = blendTile(
drawer.updateAgain = blendTile(
drawer, drawer,
tile, tile,
x, y, x, y,
@ -718,6 +717,10 @@ function updateTile( drawer, drawLevel, haveDrawn, x, y, level, levelOpacity, le
levelOpacity, levelOpacity,
currentTime currentTime
); );
if ( needsUpdate ) {
drawer.updateAgain = true;
}
} else if ( tile.loading ) { } else if ( tile.loading ) {
// the tile is already in the download queue // the tile is already in the download queue
// thanks josh1093 for finally translating this typo // thanks josh1093 for finally translating this typo