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:
2010-04-26 12:50:48 +00:00
parent f39163acd7
commit a547e91d41
2 changed files with 10 additions and 0 deletions

View File

@@ -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;

View File

@@ -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);
}