diff --git a/include/shadertoy/OpenGL/Resource.hpp b/include/shadertoy/OpenGL/Resource.hpp
index f2a107629c10f2df77e65e18e0c489a9939b05cd..d9c9818b32ae0f4c97fe92c43361ceecdcafb578 100644
--- a/include/shadertoy/OpenGL/Resource.hpp
+++ b/include/shadertoy/OpenGL/Resource.hpp
@@ -143,7 +143,10 @@ namespace OpenGL
 		 */
 		Resource(Resource &&other)
 		{
-			(*this) = std::move(other);
+			this->hasRes = other.hasRes;
+			this->resId = other.resId;
+
+			other.hasRes = false;
 		}
 
 		/**