]> git.sesse.net Git - casparcg/blobdiff - core/mixer/gpu/write_frame.cpp
com_context: Removed.
[casparcg] / core / mixer / gpu / write_frame.cpp
index 6519e74dfeb0d64c8e80a2377614767bf22659ac..68241feecf762fc5acbb70fed6272251beca757e 100644 (file)
@@ -82,14 +82,11 @@ write_frame::write_frame(const safe_ptr<gpu::accelerator>& ogl, const void* tag,
 write_frame::write_frame(write_frame&& other) : impl_(std::move(other.impl_)){}\r
 write_frame& write_frame::operator=(write_frame&& other)\r
 {\r
-       write_frame temp(std::move(other));\r
-       temp.swap(*this);\r
+       impl_ = std::move(other.impl_);\r
        return *this;\r
 }\r
 void write_frame::swap(write_frame& other){impl_.swap(other.impl_);}\r
-\r
 void write_frame::accept(core::frame_visitor& visitor){impl_->accept(*this, visitor);}\r
-\r
 const  pixel_format_desc& write_frame::get_pixel_format_desc() const{return impl_->desc_;}\r
 const boost::iterator_range<const uint8_t*> write_frame::image_data(int index) const{return impl_->image_data(index);}\r
 const audio_buffer& write_frame::audio_data() const{return impl_->audio_data_;}\r