From 601c155303692956c5d1e6c94b7df4d3e337b584 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Thu, 13 Feb 2014 14:46:59 -0800 Subject: [PATCH] correctly lock arrays on init --- interface/src/VoxelSystem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/src/VoxelSystem.cpp b/interface/src/VoxelSystem.cpp index 632c5e056e..a3352f36e7 100644 --- a/interface/src/VoxelSystem.cpp +++ b/interface/src/VoxelSystem.cpp @@ -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 {