Fix missing shader cache path

This commit is contained in:
Leith Bade
2014-12-08 20:20:16 +11:00
parent 0487b0c6a3
commit d623c264f7
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#include <mbgl/platform/platform.hpp>
#include <mbgl/android/jni.hpp>
namespace mbgl {
namespace platform {
// Returns the path to the default shader cache on this system.
std::string defaultShaderCache() {
return mbgl::android::cachePath + "/mbgl-shader-cache-";
}
}
}