Correction to previous commit, initialization of needs_free got lost by accident

This commit is contained in:
Sergey Sharybin
2015-03-20 21:09:52 +05:00
parent f91850d564
commit 8ff4c53e63

View File

@@ -379,10 +379,11 @@ rcti* RE_engine_get_current_tiles(Render *re, int *total_tiles_r, bool *r_needs_
BLI_rw_mutex_lock(&re->partsmutex, THREAD_LOCK_READ);
*r_needs_free = false;
if (re->engine && (re->engine->flag & RE_ENGINE_HIGHLIGHT_TILES) == 0) {
*total_tiles_r = 0;
BLI_rw_mutex_unlock(&re->partsmutex);
*r_needs_free = false;
return NULL;
}
@@ -398,6 +399,7 @@ rcti* RE_engine_get_current_tiles(Render *re, int *total_tiles_r, bool *r_needs_
tiles = MEM_reallocN(tiles, (total_tiles + allocation_step) * sizeof(rcti));
allocation_size += allocation_step;
*r_needs_free = true;
}
tiles[total_tiles] = pa->disprect;