Browse Source

create_gpu_instance: do not perform destroy_gpu_instance() (#5437)

When performing destroy_gpu_instance(), g_instance.created is always 0.
tags/20240820
Asd-g GitHub 1 year ago
parent
commit
bbf2e5d533
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      src/gpu.cpp

+ 0
- 2
src/gpu.cpp View File

@@ -1150,8 +1150,6 @@ static int find_default_vulkan_device_index()

int create_gpu_instance(const char* driver_path)
{
destroy_gpu_instance();

MutexLockGuard lock(g_instance_lock);

if (g_instance.created != 0)


Loading…
Cancel
Save