Fix mistake in recent refactor of TaskPool.

Wrong assert in eb6cdbae76.
This commit is contained in:
Bastien Montagne
2025-02-14 17:29:48 +01:00
parent eb6cdbae76
commit e651be4ee7

View File

@@ -423,7 +423,7 @@ bool TaskPool::tbb_task_pool_canceled()
void TaskPool::background_task_pool_run(Task &&task)
{
BLI_assert(ELEM(this->type, TASK_POOL_TBB, TASK_POOL_BACKGROUND_SERIAL));
BLI_assert(ELEM(this->type, TASK_POOL_BACKGROUND, TASK_POOL_BACKGROUND_SERIAL));
Task *task_mem = MEM_new<Task>(__func__, std::move(task));
BLI_thread_queue_push(this->background_queue, task_mem);