mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
removed _voxelCleanupLock
This commit is contained in:
parent
cfbcc4418f
commit
84da976383
2 changed files with 0 additions and 5 deletions
|
@ -46,7 +46,6 @@ VoxelSystem::VoxelSystem() {
|
|||
_alwaysRenderFullVBO = true;
|
||||
_tree = new VoxelTree();
|
||||
pthread_mutex_init(&_bufferWriteLock, NULL);
|
||||
pthread_mutex_init(&_voxelCleanupLock, NULL);
|
||||
}
|
||||
|
||||
VoxelSystem::~VoxelSystem() {
|
||||
|
@ -57,7 +56,6 @@ VoxelSystem::~VoxelSystem() {
|
|||
delete[] _voxelDirtyArray;
|
||||
delete _tree;
|
||||
pthread_mutex_destroy(&_bufferWriteLock);
|
||||
pthread_mutex_destroy(&_voxelCleanupLock);
|
||||
}
|
||||
|
||||
void VoxelSystem::loadVoxelsFile(const char* fileName, bool wantColorRandomizer) {
|
||||
|
@ -616,8 +614,6 @@ bool VoxelSystem::hasViewChanged() {
|
|||
|
||||
void VoxelSystem::removeOutOfView() {
|
||||
PerformanceWarning warn(_renderWarningsOn, "removeOutOfView()"); // would like to include removedCount, _nodeCount, _removedVoxels.count()
|
||||
pthread_mutex_lock(&_voxelCleanupLock);
|
||||
_nodeCount = 0;
|
||||
_tree->recurseTreeWithOperation(removeOutOfViewOperation,(void*)this);
|
||||
pthread_mutex_unlock(&_voxelCleanupLock);
|
||||
}
|
||||
|
|
|
@ -111,7 +111,6 @@ private:
|
|||
GLuint _vboColorsID;
|
||||
GLuint _vboIndicesID;
|
||||
pthread_mutex_t _bufferWriteLock;
|
||||
pthread_mutex_t _voxelCleanupLock;
|
||||
|
||||
ViewFrustum* _viewFrustum;
|
||||
ViewFrustum _lastKnowViewFrustum;
|
||||
|
|
Loading…
Reference in a new issue