Fix various issues

This commit is contained in:
Wojtek Figat
2026-02-06 10:37:52 +01:00
parent 5d0fdc8313
commit 4a7f1a5fde
5 changed files with 37 additions and 27 deletions

View File

@@ -317,7 +317,6 @@ int64 JobSystem::Dispatch(const Function<void(int32)>& job, int32 jobCount)
context.DependantsCount = 0;
context.DependenciesLeft = 0;
context.JobsCount = jobCount;
ASSERT(context.Dependants.IsEmpty());
context.Dependants.Clear();
// Move the job queue forward
@@ -367,7 +366,6 @@ int64 JobSystem::Dispatch(const Function<void(int32)>& job, Span<int64> dependen
context.DependantsCount = 0;
context.DependenciesLeft = 0;
context.JobsCount = jobCount;
ASSERT(context.Dependants.IsEmpty());
context.Dependants.Clear();
{
JobsLocker.Lock();