mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-23 23:37:48 -05:00
Crash fix for linux nvapi
This commit is contained in:
2
dependencies/NVFC/nvapi.cpp
vendored
2
dependencies/NVFC/nvapi.cpp
vendored
@@ -329,7 +329,7 @@ NV_STATUS NvAPI_Initialize()
|
||||
return -1;
|
||||
}
|
||||
#elif __linux__
|
||||
void* nvapi;
|
||||
void* nvapi = nullptr;
|
||||
if (!nvapi) nvapi = dlopen("libnvidia-api.so.1", RTLD_LAZY);
|
||||
if (!nvapi) nvapi = dlopen("libnvidia-api.so", RTLD_LAZY);
|
||||
if (!nvapi) {
|
||||
|
||||
Reference in New Issue
Block a user