release _threadRunning if decompressVolumeDataAsync exits early

This commit is contained in:
Seth Alves 2015-08-28 11:04:56 -07:00
parent 1ac5c19f44
commit a5cd3ff046

View file

@ -757,6 +757,7 @@ void RenderablePolyVoxEntityItem::decompressVolumeDataAsync() {
_volDataLock.lockForWrite(); _volDataLock.lockForWrite();
if (!_volData) { if (!_volData) {
_volDataLock.unlock(); _volDataLock.unlock();
_threadRunning.release();
return; return;
} }
_volDataDirty = true; _volDataDirty = true;