Browse Source

destroy_gpu_instance is not threadsafe anyway, fix deadlock on exit

tags/20190611
nihuini 7 years ago
parent
commit
5fdffbcaac
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      src/gpu.cpp

+ 2
- 6
src/gpu.cpp View File

@@ -733,12 +733,8 @@ int create_gpu_instance()

void destroy_gpu_instance()
{
{
MutexLockGuard lock(g_default_vkdev_lock);

delete g_default_vkdev;
g_default_vkdev = 0;
}
delete g_default_vkdev;
g_default_vkdev = 0;

#if ENABLE_VALIDATION_LAYER
if (support_VK_EXT_debug_utils)


Loading…
Cancel
Save