summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/uniform.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-02-27 12:47:34 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-01 09:33:37 +0100
commit55c7b86053816e74c3fd3c0595c1fa053970f959 (patch)
treec34be5d76008fad4f28d39e9c39cc85ad31b72fe /src/mbgl/gl/uniform.cpp
parent7f1428ed3b90b54f503760471869ac83def32a59 (diff)
downloadqtlocation-mapboxgl-55c7b86053816e74c3fd3c0595c1fa053970f959.tar.gz
[core] extract uniform type lists from gl namespace
Diffstat (limited to 'src/mbgl/gl/uniform.cpp')
-rw-r--r--src/mbgl/gl/uniform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/gl/uniform.cpp b/src/mbgl/gl/uniform.cpp
index e6c77be50b..21017d6436 100644
--- a/src/mbgl/gl/uniform.cpp
+++ b/src/mbgl/gl/uniform.cpp
@@ -63,7 +63,7 @@ void bindUniform<bool>(UniformLocation location, const bool& t) {
}
template <>
-void bindUniform<uint8_t>(UniformLocation location, const uint8_t& t) {
+void bindUniform<uint32_t>(UniformLocation location, const uint32_t& t) {
bindUniform(location, int32_t(t));
}
@@ -153,7 +153,7 @@ bool verifyUniform<bool>(const ActiveUniform& uniform) {
}
template <>
-bool verifyUniform<uint8_t>(const ActiveUniform& uniform) {
+bool verifyUniform<uint32_t>(const ActiveUniform& uniform) {
assert(uniform.size == 1 &&
(uniform.type == UniformDataType::Int ||
uniform.type == UniformDataType::Float ||