Linux fixes for headless SwiftShader.

This commit is contained in:
Philip Rideout
2020-10-07 11:24:33 -07:00
parent 52698aab14
commit 7471237178
3 changed files with 16 additions and 9 deletions
+4
View File
@@ -30,7 +30,11 @@ static const char* VKLIBRARY_PATH = "libvulkan.so.1";
static void* module = nullptr;
bool loadLibrary() {
#ifndef FILAMENT_VKLIBRARY_PATH
module = dlopen(VKLIBRARY_PATH, RTLD_NOW | RTLD_LOCAL);
#else
module = dlopen(FILAMENT_VKLIBRARY_PATH, RTLD_NOW | RTLD_LOCAL);
#endif
return module != nullptr;
}