Second attempt at fixing the build for the crapple platform

This commit is contained in:
Magnus Norddahl 2024-07-04 01:13:58 +02:00
commit 8a51044c68

View file

@ -102,11 +102,7 @@ public:
#ifdef __APPLE__ // crapple only implemented std::filesystem::absolute on the very latest macOS.
std::string location = loc.getStringNameOrNum(false);
if (absolute) {
append(std::filesystem::absolute(location).string());
} else {
append(location);
}
append(location);
#else
if(loc.getFilename() == nullptr && shaderFileName != nullptr && absolute) {
append(std::filesystem::absolute(shaderFileName).string());