bug fix : allow directory defined in cmakelist
parent
5665ff4105
commit
a8fe315be6
|
@ -9,8 +9,6 @@ const std::string getAssetPath()
|
|||
#if defined(VK_USE_PLATFORM_ANDROID_KHR)
|
||||
return "";
|
||||
#elif defined(VK_EXAMPLE_DATA_DIR)
|
||||
return VK_EXAMPLE_DATA_DIR;
|
||||
#else
|
||||
|
||||
if (_access("./../data/", 0) != -1)
|
||||
{
|
||||
|
@ -30,7 +28,7 @@ const std::string getAssetPath()
|
|||
else
|
||||
{
|
||||
|
||||
return "./../../../data";
|
||||
return VK_EXAMPLE_DATA_DIR;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue