Some small improvements

This commit is contained in:
Alexander Bock
2020-08-13 14:02:02 +02:00
parent 760c34660f
commit a6ca95347c
3 changed files with 14 additions and 4 deletions
+3 -2
View File
@@ -923,16 +923,17 @@ Tile tile(TileProvider& tp, const TileIndex& tileIndex) {
return Tile{ nullptr, std::nullopt, Tile::Status::OutOfRange };
}
const cache::ProviderTileKey key = { tileIndex, t.uniqueIdentifier };
const Tile tile = t.tileCache->get(key);
Tile tile = t.tileCache->get(key);
if (!tile.texture) {
TracyMessage("Enqueuing tile", 32);
t.asyncTextureDataProvider->enqueueTileIO(tileIndex);
}
return tile;
}
else {
return Tile{ nullptr, std::nullopt, Tile::Status::Unavailable };
return Tile { nullptr, std::nullopt, Tile::Status::Unavailable };
}
}
case Type::SingleImageTileProvider: {