GPUDevice: Fix SPIRV-Cross load error on Mac
This commit is contained in:
parent
d862043f1d
commit
79bb5f079c
|
@ -58,7 +58,7 @@ STRIP=strip
|
||||||
declare -a MANUAL_LIBS=(
|
declare -a MANUAL_LIBS=(
|
||||||
"libdiscord-rpc.so"
|
"libdiscord-rpc.so"
|
||||||
"libshaderc_shared.so"
|
"libshaderc_shared.so"
|
||||||
"libspirv-cross-c-shared.so.0.61.0"
|
"libspirv-cross-c-shared.so.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
declare -a MANUAL_QT_LIBS=(
|
declare -a MANUAL_QT_LIBS=(
|
||||||
|
|
|
@ -1321,8 +1321,7 @@ bool dyn_libs::OpenSpirvCross(Error* error)
|
||||||
// SPVC's build on Windows doesn't spit out a versioned DLL.
|
// SPVC's build on Windows doesn't spit out a versioned DLL.
|
||||||
const std::string libname = DynamicLibrary::GetVersionedFilename("spirv-cross-c-shared");
|
const std::string libname = DynamicLibrary::GetVersionedFilename("spirv-cross-c-shared");
|
||||||
#else
|
#else
|
||||||
const std::string libname = DynamicLibrary::GetVersionedFilename("spirv-cross-c-shared", SPVC_C_API_VERSION_MAJOR,
|
const std::string libname = DynamicLibrary::GetVersionedFilename("spirv-cross-c-shared", SPVC_C_API_VERSION_MAJOR);
|
||||||
SPVC_C_API_VERSION_MINOR, SPVC_C_API_VERSION_PATCH);
|
|
||||||
#endif
|
#endif
|
||||||
if (!s_spirv_cross_library.Open(libname.c_str(), error))
|
if (!s_spirv_cross_library.Open(libname.c_str(), error))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue