summaryrefslogtreecommitdiff
path: root/boost/compute/detail/buffer_value.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/compute/detail/buffer_value.hpp')
-rw-r--r--boost/compute/detail/buffer_value.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/boost/compute/detail/buffer_value.hpp b/boost/compute/detail/buffer_value.hpp
index 6a4e78fc19..478fc03252 100644
--- a/boost/compute/detail/buffer_value.hpp
+++ b/boost/compute/detail/buffer_value.hpp
@@ -124,7 +124,9 @@ public:
const context &context = m_buffer.get_context();
command_queue queue(context, context.get_device());
- detail::write_single_value<T>(value, m_buffer, m_index / sizeof(T), queue);
+ detail::write_single_value<T>(
+ value, m_buffer, m_index / sizeof(T), queue
+ ).wait();
return *this;
}