mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 13:03:55 +02:00
correctly lock arrays on init
This commit is contained in:
parent
ed7fa6e311
commit
601c155303
1 changed files with 4 additions and 4 deletions
|
@ -413,8 +413,8 @@ void VoxelSystem::setupFaceIndices(GLuint& faceVBOID, GLubyte faceIdentityIndice
|
|||
}
|
||||
|
||||
void VoxelSystem::initVoxelMemory() {
|
||||
//_readArraysLock.lockForWrite();
|
||||
//_writeArraysLock.lockForWrite();
|
||||
_readArraysLock.lockForWrite();
|
||||
_writeArraysLock.lockForWrite();
|
||||
|
||||
_memoryUsageRAM = 0;
|
||||
_memoryUsageVBO = 0; // our VBO allocations as we know them
|
||||
|
@ -529,8 +529,8 @@ void VoxelSystem::initVoxelMemory() {
|
|||
|
||||
_initialized = true;
|
||||
|
||||
//_writeArraysLock.unlock();
|
||||
//_readArraysLock.unlock();
|
||||
_writeArraysLock.unlock();
|
||||
_readArraysLock.unlock();
|
||||
}
|
||||
|
||||
void VoxelSystem::writeToSVOFile(const char* filename, VoxelTreeElement* element) const {
|
||||
|
|
Loading…
Reference in a new issue