Cycles: Fix amount of rendered samples not being shown while rendering the last tile on CPU

This commit is contained in:
Lukas Stockner 2017-01-19 00:39:52 +01:00
parent 1455023e64
commit 4a19112277
1 changed files with 2 additions and 0 deletions

View File

@ -458,6 +458,8 @@ void Session::release_tile(RenderTile& rtile)
{
thread_scoped_lock tile_lock(tile_mutex);
progress.add_finished_tile();
if(write_render_tile_cb) {
if(params.progressive_refine == false) {
/* todo: optimize this by making it thread safe and removing lock */