Fix issue with resumable rendering in recent changes.

This commit is contained in:
Brecht Van Lommel 2017-10-21 20:57:31 +02:00
parent 6199a606a6
commit 0836795a0d
2 changed files with 2 additions and 2 deletions

View File

@ -922,7 +922,7 @@ void Session::update_status_time(bool show_pause, bool show_done)
void Session::render()
{
/* Clear buffers. */
if(buffers && tile_manager.state.sample == 0) {
if(buffers && tile_manager.state.sample == tile_manager.range_start_sample) {
buffers->zero(device);
}

View File

@ -517,7 +517,7 @@ bool TileManager::next()
state.resolution_divider = pixel_size;
if(state.sample == 0) {
if(state.sample == range_start_sample) {
set_tiles();
}
else {