From 02b808b08acc73b9b3d31832a7f137a9aae4bdd9 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Sun, 7 Apr 2013 18:31:06 +0200 Subject: clover: Fix usage of incorrect object as destination in clEnqueueCopyBufferToImage. Signed-off-by: Francisco Jerez --- src/gallium/state_trackers/clover/api/transfer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/clover/api') diff --git a/src/gallium/state_trackers/clover/api/transfer.cpp b/src/gallium/state_trackers/clover/api/transfer.cpp index 295d6c7b29e..7e6b26f9603 100644 --- a/src/gallium/state_trackers/clover/api/transfer.cpp +++ b/src/gallium/state_trackers/clover/api/transfer.cpp @@ -414,7 +414,7 @@ clEnqueueCopyBufferToImage(cl_command_queue q, cl_mem src_obj, cl_mem dst_obj, const size_t *dst_origin, const size_t *region, cl_uint num_deps, const cl_event *deps, cl_event *ev) try { - image *dst_img = dynamic_cast(src_obj); + image *dst_img = dynamic_cast(dst_obj); validate_base(q, num_deps, deps); validate_obj(q, src_obj); -- cgit v1.2.3