diff --git a/src/Magnum/Platform/WindowlessEglApplication.cpp b/src/Magnum/Platform/WindowlessEglApplication.cpp index 15b237dde..25b7aec24 100644 --- a/src/Magnum/Platform/WindowlessEglApplication.cpp +++ b/src/Magnum/Platform/WindowlessEglApplication.cpp @@ -526,12 +526,18 @@ WindowlessEglContext::WindowlessEglContext(WindowlessEglContext&& other) noexcep _sharedContext{other._sharedContext}, #endif _display{other._display}, _context{other._context} + #if defined(MAGNUM_TARGET_GLES) && !defined(MAGNUM_TARGET_WEBGL) + , _surface{other._surface} + #endif { #ifndef MAGNUM_TARGET_WEBGL other._sharedContext = false; #endif other._display = {}; other._context = {}; + #if defined(MAGNUM_TARGET_GLES) && !defined(MAGNUM_TARGET_WEBGL) + other._surface = {}; + #endif } WindowlessEglContext::~WindowlessEglContext() { @@ -570,6 +576,9 @@ WindowlessEglContext& WindowlessEglContext::operator=(WindowlessEglContext&& oth #endif swap(other._display, _display); swap(other._context, _context); + #if defined(MAGNUM_TARGET_GLES) && !defined(MAGNUM_TARGET_WEBGL) + swap(other._surface, _surface); + #endif return *this; }