556 + if (buffer.stride().as_uint32_t() * buffer_size.height.as_uint32_t() != size)
557 + BOOST_THROW_EXCEPTION(std::logic_error("Size of pixels is not equal to size of buffer"));
You should just do a line by line copy. You'll be excluding devices with stride.
556 + if (buffer. stride( ).as_uint32_ t() * buffer_ size.height. as_uint32_ t() != size) EXCEPTION( std::logic_ error(" Size of pixels is not equal to size of buffer"));
557 + BOOST_THROW_
You should just do a line by line copy. You'll be excluding devices with stride.