Browse Source

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.
pull/427/merge
Vladimír Vondruš 6 years ago
parent
commit
391dfbda4f
  1. 3
      src/Magnum/GL/AbstractQuery.h

3
src/Magnum/GL/AbstractQuery.h

@ -205,7 +205,7 @@ template<> UnsignedLong MAGNUM_GL_EXPORT AbstractQuery::result<UnsignedLong>();
template<> Long MAGNUM_GL_EXPORT AbstractQuery::result<Long>(); template<> Long MAGNUM_GL_EXPORT AbstractQuery::result<Long>();
#endif #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; other._id = 0;
} }
@ -213,6 +213,7 @@ inline AbstractQuery& AbstractQuery::operator=(AbstractQuery&& other) noexcept {
using std::swap; using std::swap;
swap(_id, other._id); swap(_id, other._id);
swap(_target, other._target); swap(_target, other._target);
swap(_flags, other._flags);
return *this; return *this;
} }

Loading…
Cancel
Save