mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: backlight setting not applying on change
This commit is contained in:
parent
4dfa235f12
commit
d59fac61bb
6 changed files with 20 additions and 0 deletions
|
|
@ -79,6 +79,12 @@ void ChunksRenderer::unload(const Chunk* chunk) {
|
|||
}
|
||||
}
|
||||
|
||||
void ChunksRenderer::clear() {
|
||||
meshes.clear();
|
||||
inwork.clear();
|
||||
threadPool.clearQueue();
|
||||
}
|
||||
|
||||
std::shared_ptr<Mesh> ChunksRenderer::getOrRender(const std::shared_ptr<Chunk>& chunk, bool important) {
|
||||
auto found = meshes.find(glm::ivec2(chunk->x, chunk->z));
|
||||
if (found == meshes.end()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue