diff --git a/Source/Engine/Terrain/TerrainChunk.cpp b/Source/Engine/Terrain/TerrainChunk.cpp index 737ce08f8..9bf1c1208 100644 --- a/Source/Engine/Terrain/TerrainChunk.cpp +++ b/Source/Engine/Terrain/TerrainChunk.cpp @@ -84,6 +84,8 @@ void TerrainChunk::Draw(const RenderContext& renderContext) const DrawCall drawCall; if (TerrainManager::GetChunkGeometry(drawCall, chunkSize, lod)) return; + if (!_neighbors[0]) + const_cast(this)->CacheNeighbors(); drawCall.InstanceCount = 1; drawCall.Material = _cachedDrawMaterial; renderContext.View.GetWorldMatrix(_transform, drawCall.World);