Skip to content

Commit

Permalink
create_gpu_instance: do not perform destroy_gpu_instance() (#5437)
Browse files Browse the repository at this point in the history
When performing destroy_gpu_instance(), g_instance.created is always 0.
  • Loading branch information
Asd-g authored Jun 4, 2024
1 parent 5b49d0a commit bbf2e5d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bbf2e5d

Please sign in to comment.