summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-11-06 14:01:19 +0100
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:33 +0100
commit95c85382030af78854a42d457fbb259e6078402b (patch)
tree9ed941e9ee88cc77ece824c3c7bb872a37ec7d9b /src/RendererWorld.hpp
parentMinor shader optimization (diff)
downloadAltCraft-95c85382030af78854a42d457fbb259e6078402b.tar
AltCraft-95c85382030af78854a42d457fbb259e6078402b.tar.gz
AltCraft-95c85382030af78854a42d457fbb259e6078402b.tar.bz2
AltCraft-95c85382030af78854a42d457fbb259e6078402b.tar.lz
AltCraft-95c85382030af78854a42d457fbb259e6078402b.tar.xz
AltCraft-95c85382030af78854a42d457fbb259e6078402b.tar.zst
AltCraft-95c85382030af78854a42d457fbb259e6078402b.zip
Diffstat (limited to '')
-rw-r--r--src/RendererWorld.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/RendererWorld.hpp b/src/RendererWorld.hpp
index 11a659b..a961a84 100644
--- a/src/RendererWorld.hpp
+++ b/src/RendererWorld.hpp
@@ -16,6 +16,7 @@ class Texture;
class Shader;
class EventListener;
class RenderState;
+class RendererSectionData;
class RendererWorld {
//General
@@ -30,7 +31,7 @@ class RendererWorld {
std::map<Vector, bool> isParsing;
//Blocks
std::mutex renderDataMutex;
- std::queue<RendererSectionData> renderData;
+ std::queue<std::unique_ptr<RendererSectionData>> renderData;
std::vector<Vector> renderList;
std::mutex sectionsMutex;
std::map<Vector, RendererSection> sections;