Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -413,8 +413,8 @@ void VoxelSystem::setupFaceIndices(GLuint& faceVBOID, GLubyte faceIdentityIndice · 412 unmodified lines | ||
| 413 | 413 | } |
| 414 | 414 | |
| 415 | 415 | void VoxelSystem::initVoxelMemory() { |
| 416 | − //_readArraysLock.lockForWrite(); | |
| 417 | − //_writeArraysLock.lockForWrite(); | |
| 416 | + _readArraysLock.lockForWrite(); | |
| 417 | + _writeArraysLock.lockForWrite(); | |
| 418 | 418 | |
| 419 | 419 | _memoryUsageRAM = 0; |
| 420 | 420 | _memoryUsageVBO = 0; // our VBO allocations as we know them |
| @@ -529,8 +529,8 @@ void VoxelSystem::initVoxelMemory() { · 108 unmodified lines | ||
| 529 | 529 | |
| 530 | 530 | _initialized = true; |
| 531 | 531 | |
| 532 | − //_writeArraysLock.unlock(); | |
| 533 | − //_readArraysLock.unlock(); | |
| 532 | + _writeArraysLock.unlock(); | |
| 533 | + _readArraysLock.unlock(); | |
| 534 | 534 | } |
| 535 | 535 | |
| 536 | 536 | void VoxelSystem::writeToSVOFile(const char* filename, VoxelTreeElement* element) const { |