diff options
Diffstat (limited to 'src/mbgl/gl/state.hpp')
-rw-r--r-- | src/mbgl/gl/state.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/gl/state.hpp b/src/mbgl/gl/state.hpp index 17503cc043..77effb1781 100644 --- a/src/mbgl/gl/state.hpp +++ b/src/mbgl/gl/state.hpp @@ -20,11 +20,13 @@ public: State(Args&&... args) : params(std::forward_as_tuple(::std::forward<Args>(args)...)) { } - void operator=(const typename T::Type& value) { + State& operator=(const typename T::Type& value) { if (*this != value) { setCurrentValue(value); set(std::index_sequence_for<Args...>{}); } + + return *this; } bool operator==(const typename T::Type& value) const { |