Using a fixed number of chunktiles in the chunktilepile as they number has to be 1 or 3

This commit is contained in:
Alexander Bock
2020-08-13 17:50:22 +02:00
parent c55aa5f69a
commit 5091fa7ddb
7 changed files with 34 additions and 20 deletions
@@ -1283,11 +1283,10 @@ void RenderableGlobe::renderChunkGlobally(const Chunk& chunk, const RenderData&
ZoneScoped
TracyGpuZone("renderChunkGlobally")
//PerfMeasure("globally");
const TileIndex& tileIndex = chunk.tileIndex;
ghoul::opengl::ProgramObject& program = *_globalRenderer.program;
const std::array<LayerGroup*, LayerManager::NumLayerGroups>& layerGroups =
std::array<LayerGroup*, LayerManager::NumLayerGroups> layerGroups =
_layerManager.layerGroups();
for (size_t i = 0; i < layerGroups.size(); ++i) {
_globalRenderer.gpuLayerGroups[i].setValue(program, *layerGroups[i], tileIndex);