}
}
- if (bStatus && pItem->has_snapshot() && pItem->get_snapshot()->is_edited())
+ if (bStatus && pItem->has_snapshot() && pItem->get_snapshot()->is_edited() && pItem->get_snapshot()->is_valid())
{
bStatus = applying_snapshot_and_process_resize(pItem->get_snapshot()->get_snapshot());
}
if (bStatus == false)
{
vogl_error_printf("%s: Replay ending abruptly at frame index %u, global api call %" PRIu64 "\n", VOGL_FUNCTION_NAME, m_pTraceReplayer->get_frame_index(), m_pTraceReplayer->get_last_processed_call_counter());
+ break;
}
else
{
}
}
}
+ else
+ {
+ break;
+ }
}
}