From 391dfbda4fa93833aee836b19cff8923e84eb41d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 29 Apr 2020 18:49:29 +0200 Subject: [PATCH] GL: not that it mattered much, but AbstractQuery forgot to move _flags. These are not really used much so it probably didn't cause any bugs, but nevertheless. Found while fixing something else. --- src/Magnum/GL/AbstractQuery.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }