summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/uniform.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-03-15 23:32:45 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-20 15:40:47 +0100
commit0ad2375e1047353fc65fabce3ac9123dc095179e (patch)
treeadfcd395cb9f38a3eff6845bb63e3ab8bcf131a3 /src/mbgl/gl/uniform.hpp
parent9ee1de575af4ef332ad8812c11d9d63edc94d76e (diff)
downloadqtlocation-mapboxgl-0ad2375e1047353fc65fabce3ac9123dc095179e.tar.gz
[core] remove a_/u_ prefix from attribute/uniform types
Diffstat (limited to 'src/mbgl/gl/uniform.hpp')
-rw-r--r--src/mbgl/gl/uniform.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mbgl/gl/uniform.hpp b/src/mbgl/gl/uniform.hpp
index 770f3e2294..64c83cab6b 100644
--- a/src/mbgl/gl/uniform.hpp
+++ b/src/mbgl/gl/uniform.hpp
@@ -73,21 +73,21 @@ public:
util::ignore(
{ // Some shader programs have uniforms declared, but not used, so they're not active.
// Therefore, we'll only verify them when they are indeed active.
- (active.find(Us::name()) != active.end()
- ? verifyUniform<typename Us::Value>(active.at(Us::name()))
+ (active.find(Us::uniformName()) != active.end()
+ ? verifyUniform<typename Us::Value>(active.at(Us::uniformName()))
: false)... });
#endif
- state = State{ gl::uniformLocation(id, Us::name())... };
+ state = State{ gl::uniformLocation(id, Us::uniformName())... };
}
template <class BinaryProgram>
void loadNamedLocations(const BinaryProgram& program) {
- state = State{ UniformState<typename Us::Value>(program.uniformLocation(Us::name()))... };
+ state = State{ UniformState<typename Us::Value>(program.uniformLocation(Us::uniformName()))... };
}
NamedUniformLocations getNamedLocations() const {
- return NamedUniformLocations{ { Us::name(), state.template get<Us>().location }... };
+ return NamedUniformLocations{ { Us::uniformName(), state.template get<Us>().location }... };
}
void bind(const gfx::UniformValues<TypeList<Us...>>& values) {