summaryrefslogtreecommitdiff
path: root/src/mbgl/gl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gl')
-rw-r--r--src/mbgl/gl/uniform.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/gl/uniform.hpp b/src/mbgl/gl/uniform.hpp
index b877f10e46..829192bcca 100644
--- a/src/mbgl/gl/uniform.hpp
+++ b/src/mbgl/gl/uniform.hpp
@@ -49,7 +49,7 @@ public:
class State {
public:
void operator=(const Value& value) {
- if (!current || *current != value.t) {
+ if (location >= 0 && (!current || *current != value.t)) {
current = value.t;
bindUniform(location, value.t);
}