Crash fix for linux nvapi
This commit is contained in:
parent
f2c99f22a8
commit
a6df80f87e
1 changed files with 1 additions and 1 deletions
2
dependencies/NVFC/nvapi.cpp
vendored
2
dependencies/NVFC/nvapi.cpp
vendored
|
|
@ -329,7 +329,7 @@ NV_STATUS NvAPI_Initialize()
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#elif __linux__
|
#elif __linux__
|
||||||
void* nvapi;
|
void* nvapi = nullptr;
|
||||||
if (!nvapi) nvapi = dlopen("libnvidia-api.so.1", RTLD_LAZY);
|
if (!nvapi) nvapi = dlopen("libnvidia-api.so.1", RTLD_LAZY);
|
||||||
if (!nvapi) nvapi = dlopen("libnvidia-api.so", RTLD_LAZY);
|
if (!nvapi) nvapi = dlopen("libnvidia-api.so", RTLD_LAZY);
|
||||||
if (!nvapi) {
|
if (!nvapi) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue