mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-01 00:09:58 -05:00
Revert "Merge pull request #2721 from OpenSpace/issue/2682"
This reverts commitb4337e8188, reversing changes made to384f1e5530.
This commit is contained in:
@@ -104,7 +104,6 @@ struct TileMetaData {
|
||||
std::array<float, 4> maxValues;
|
||||
std::array<float, 4> minValues;
|
||||
std::array<bool, 4> hasMissingData;
|
||||
bool allMissingData = false;
|
||||
uint8_t nValues = 0;
|
||||
};
|
||||
|
||||
|
||||
@@ -977,7 +977,9 @@ TileMetaData RawTileDataReader::tileMetaData(RawTile& rawTile,
|
||||
}
|
||||
}
|
||||
|
||||
ppData.allMissingData = allIsMissing;
|
||||
if (allIsMissing) {
|
||||
rawTile.error = RawTile::ReadError::Failure;
|
||||
}
|
||||
|
||||
return ppData;
|
||||
}
|
||||
|
||||
@@ -251,16 +251,9 @@ Tile::Status DefaultTileProvider::tileStatus(const TileIndex& index) {
|
||||
.tileIndex = index,
|
||||
.providerID = uniqueIdentifier
|
||||
};
|
||||
|
||||
cache::MemoryAwareTileCache* tileCache =
|
||||
global::moduleEngine->module<GlobeBrowsingModule>()->tileCache();
|
||||
|
||||
Tile t = tileCache->get(key);
|
||||
if (t.metaData.has_value() && t.metaData->allMissingData) {
|
||||
return Tile::Status::OutOfRange;
|
||||
}
|
||||
|
||||
return t.status;
|
||||
return tileCache->get(key).status;
|
||||
}
|
||||
|
||||
TileDepthTransform DefaultTileProvider::depthTransform() {
|
||||
|
||||
Reference in New Issue
Block a user