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
Notes: blender-bot 2023-02-14 11:34:36 +01:00
Referenced by issue #37525, Viewer node causes crash
1 changed files with 0 additions and 2 deletions

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) {