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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
2 deletions
-
src/gpu.cpp
|
|
|
@@ -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) |
|
|
|
|