vkd3d: Fix potential hang in d3d12_command_queue_Release.

This can happen if the fence thread starts with a delay and
the queue gets destroyed shortly after being created.

Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
This commit is contained in:
Philip Rebohle 2021-03-16 18:08:44 +01:00 committed by Hans-Kristian Arntzen
parent 34a09967d5
commit dadace33b1
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ static void *vkd3d_fence_worker_main(void *arg)
break;
}
if (!worker->enqueued_fence_count)
if (!worker->enqueued_fence_count && !worker->should_exit)
{
if ((rc = pthread_cond_wait(&worker->cond, &worker->mutex)))
{