else \r
draw(target_texture, std::move(layers), format_desc, core::field_mode::progressive);\r
\r
- return make_shared(ogl_->copy_async(target_texture));\r
+ return ogl_->copy_async(target_texture);\r
}));\r
}\r
\r
source->copy_to(*buffer); \r
\r
auto self = shared_from_this();\r
- return make_shared(async(launch::deferred, [self, buffer]() mutable -> array<const std::uint8_t>\r
+ return async(launch::deferred, [self, buffer]() mutable -> array<const std::uint8_t>\r
{\r
const auto& buf = buffer.get();\r
if(!buf->data())\r
self->alloc_executor_.invoke(std::bind(&buffer::map, std::ref(buf))); // Defer blocking "map" call until data is needed.\r
\r
return array<const std::uint8_t>(buf->data(), buf->size(), true, buffer);\r
- }));\r
+ });\r
}, task_priority::high_priority));\r
}\r
};\r