diff options
author | Leith Bade <leith@mapbox.com> | 2014-12-08 20:20:16 +1100 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2014-12-08 20:20:16 +1100 |
commit | d623c264f70977c385bb2b58fd137f477f3db46b (patch) | |
tree | 3c9f888af1a4def6d3f33d206e9aa18108628f02 /platform/android | |
parent | 0487b0c6a33b0be21d284e70560459fd13006d04 (diff) | |
download | qtlocation-mapboxgl-d623c264f70977c385bb2b58fd137f477f3db46b.tar.gz |
Fix missing shader cache path
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/shader_cache_data.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/platform/android/shader_cache_data.cpp b/platform/android/shader_cache_data.cpp new file mode 100644 index 0000000000..253aa6a32d --- /dev/null +++ b/platform/android/shader_cache_data.cpp @@ -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-"; +} + +} +} |