summaryrefslogtreecommitdiff
path: root/src/mbgl/gl
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-06-13 11:47:39 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-06-14 11:13:43 -0700
commit212ae5273dc3930a035b51c603c540b4f02fa777 (patch)
tree64e4c1b88515035fe379cb55ca0f2fcf724163e9 /src/mbgl/gl
parenta64828218a3934c036f7fb256b6799723c30830a (diff)
downloadqtlocation-mapboxgl-212ae5273dc3930a035b51c603c540b4f02fa777.tar.gz
[core] cleanup ProgramParameters
Diffstat (limited to 'src/mbgl/gl')
-rw-r--r--src/mbgl/gl/program.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/gl/program.hpp b/src/mbgl/gl/program.hpp
index 1b23abe2b1..c36543839c 100644
--- a/src/mbgl/gl/program.hpp
+++ b/src/mbgl/gl/program.hpp
@@ -55,11 +55,11 @@ public:
shaders::vertexSource(programParameters, vertexSource_);
const std::string fragmentSource =
shaders::fragmentSource(programParameters, fragmentSource_);
- const std::string cachePath =
- shaders::programCachePath(programParameters, name);
const std::string identifier =
shaders::programIdentifier(vertexSource, fragmentSource_);
+ const std::string cachePath = programParameters.cachePath(name);
+
try {
if (auto cachedBinaryProgram = util::readFile(cachePath)) {
const BinaryProgram binaryProgram(std::move(*cachedBinaryProgram));