diff --git a/src/Magnum/GL/AbstractQuery.h b/src/Magnum/GL/AbstractQuery.h index 9185d17cb..1fe0960e3 100644 --- a/src/Magnum/GL/AbstractQuery.h +++ b/src/Magnum/GL/AbstractQuery.h @@ -205,7 +205,7 @@ template<> UnsignedLong MAGNUM_GL_EXPORT AbstractQuery::result(); template<> Long MAGNUM_GL_EXPORT AbstractQuery::result(); #endif -inline AbstractQuery::AbstractQuery(AbstractQuery&& other) noexcept: _id(other._id), _target(other._target) { +inline AbstractQuery::AbstractQuery(AbstractQuery&& other) noexcept: _id(other._id), _target(other._target), _flags{other._flags} { other._id = 0; } @@ -213,6 +213,7 @@ inline AbstractQuery& AbstractQuery::operator=(AbstractQuery&& other) noexcept { using std::swap; swap(_id, other._id); swap(_target, other._target); + swap(_flags, other._flags); return *this; }