Update WorldRender.cpp and ChunkClipboard.cpp | fix issue crash on tool exit

This commit is contained in:
Skarn
2022-02-13 16:41:54 +03:00
parent e8281f400c
commit e422c1736f
2 changed files with 3 additions and 1 deletions

View File

@@ -1155,6 +1155,8 @@ void WorldRender::unload()
_buffers.unload();
_vertex_arrays.unload();
Noggit::Rendering::Primitives::WireBox::getInstance(_world->_context).unload();
}

View File

@@ -1,4 +1,3 @@
// This file is part of Noggit3, licensed under GNU General Public License (version 3).
@@ -13,6 +12,7 @@ using namespace Noggit::Ui::Tools::ChunkManipulator;
ChunkClipboard::ChunkClipboard(World* world, QObject* parent)
: QObject(parent)
, _world(world)
, _copy_flags()
{
}