Two bugfixes from the render branch:
* Fix for FSA update while rendering fix, should set float rect to NULL. * Fix for irradiance cache mutex unlock that got lost in code changes.
This commit is contained in:
@@ -1950,11 +1950,19 @@ static ImBuf *image_get_render_result(Image *ima, ImageUser *iuser, void **lock_
|
||||
ibuf->flags |= IB_rectfloat;
|
||||
ibuf->channels= channels;
|
||||
}
|
||||
else {
|
||||
ibuf->rect_float= NULL;
|
||||
ibuf->flags &= ~IB_rectfloat;
|
||||
}
|
||||
|
||||
if(rectz) {
|
||||
ibuf->zbuf_float= rectz;
|
||||
ibuf->flags |= IB_zbuffloat;
|
||||
}
|
||||
else {
|
||||
ibuf->zbuf_float= NULL;
|
||||
ibuf->flags &= ~IB_zbuffloat;
|
||||
}
|
||||
|
||||
ibuf->dither= dither;
|
||||
|
||||
|
||||
@@ -359,6 +359,8 @@ void BLI_unlock_thread(int type)
|
||||
pthread_mutex_unlock(&_viewer_lock);
|
||||
else if(type==LOCK_CUSTOM1)
|
||||
pthread_mutex_unlock(&_custom1_lock);
|
||||
else if(type==LOCK_RCACHE)
|
||||
pthread_mutex_unlock(&_rcache_lock);
|
||||
else if(type==LOCK_OPENGL)
|
||||
pthread_mutex_unlock(&_opengl_lock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user