summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-03-05 19:39:09 +0100
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-03-08 21:41:12 +0100
commita99b10c86eb048c0b0f594029f3de9a3df473aae (patch)
treed66e0aa673eb049e61d08ac0fda1a591185315a2 /src/RendererWorld.cpp
parentSimplified Section class (diff)
downloadAltCraft-a99b10c86eb048c0b0f594029f3de9a3df473aae.tar
AltCraft-a99b10c86eb048c0b0f594029f3de9a3df473aae.tar.gz
AltCraft-a99b10c86eb048c0b0f594029f3de9a3df473aae.tar.bz2
AltCraft-a99b10c86eb048c0b0f594029f3de9a3df473aae.tar.lz
AltCraft-a99b10c86eb048c0b0f594029f3de9a3df473aae.tar.xz
AltCraft-a99b10c86eb048c0b0f594029f3de9a3df473aae.tar.zst
AltCraft-a99b10c86eb048c0b0f594029f3de9a3df473aae.zip
Diffstat (limited to '')
-rw-r--r--src/RendererWorld.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp
index 16f7950..3630a7a 100644
--- a/src/RendererWorld.cpp
+++ b/src/RendererWorld.cpp
@@ -27,7 +27,7 @@ void RendererWorld::WorkerFunction(size_t workerId) {
if (result != sections.end()) {
if (result->second.GetHash() != gs->world.GetSection(result->first).GetHash()) {
sectionsMutex.unlock();
- auto data = std::make_unique<RendererSectionData>(&gs->world, vec);
+ auto data = std::make_unique<RendererSectionData>(ParseSection(&gs->world, vec));
renderDataMutex.lock();
renderData.push(std::move(data));
renderDataMutex.unlock();
@@ -42,7 +42,7 @@ void RendererWorld::WorkerFunction(size_t workerId) {
}
else {
sectionsMutex.unlock();
- auto data = std::make_unique<RendererSectionData>(&gs->world, vec);
+ auto data = std::make_unique<RendererSectionData>(ParseSection(&gs->world, vec));
renderDataMutex.lock();
renderData.push(std::move(data));
renderDataMutex.unlock();