Potential fix for T37525: Viewer node causes crash

LOCK_DRAW_IMAGE used to be unlocked twice. Now made it
so all the thread-unsafe code is inside a single lock/
unlock section.
This commit is contained in:
Sergey Sharybin
2013-11-19 13:15:17 +06:00
parent 1968612e5b
commit 1e479d1722

View File

@@ -147,8 +147,6 @@ void ViewerOperation::initImage()
ima->ok = IMA_OK_LOADED;
ibuf->userflags |= IB_DISPLAY_BUFFER_INVALID;
BLI_unlock_thread(LOCK_DRAW_IMAGE);
}
if (m_doDepthBuffer) {