Fix missing shader cache path
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
},
|
||||
'sources': [
|
||||
'../platform/android/cache_database_data.cpp',
|
||||
'../platform/android/shader_cache_data.cpp',
|
||||
'../platform/android/log_android.cpp',
|
||||
'../platform/android/asset_request_baton_libzip.cpp',
|
||||
'../platform/default/string_stdlib.cpp',
|
||||
|
||||
13
platform/android/shader_cache_data.cpp
Normal file
13
platform/android/shader_cache_data.cpp
Normal 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-";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user