Update WorldRender.cpp and ChunkClipboard.cpp | fix issue crash on tool exit
This commit is contained in:
@@ -1155,6 +1155,8 @@ void WorldRender::unload()
|
|||||||
|
|
||||||
_buffers.unload();
|
_buffers.unload();
|
||||||
_vertex_arrays.unload();
|
_vertex_arrays.unload();
|
||||||
|
|
||||||
|
Noggit::Rendering::Primitives::WireBox::getInstance(_world->_context).unload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
// This file is part of Noggit3, licensed under GNU General Public License (version 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)
|
ChunkClipboard::ChunkClipboard(World* world, QObject* parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
, _world(world)
|
, _world(world)
|
||||||
|
, _copy_flags()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user