summaryrefslogtreecommitdiffstats
path: root/src/render/raycasting/qraycastingservice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/raycasting/qraycastingservice.cpp')
-rw-r--r--src/render/raycasting/qraycastingservice.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/render/raycasting/qraycastingservice.cpp b/src/render/raycasting/qraycastingservice.cpp
index bdb1557f7..e9a88e3a3 100644
--- a/src/render/raycasting/qraycastingservice.cpp
+++ b/src/render/raycasting/qraycastingservice.cpp
@@ -194,8 +194,9 @@ QQueryHandle QRayCastingService::query(const QRay3D &ray,
// Blocking mapReduce
#if QT_CONFIG(concurrent)
- FutureQueryResult future = QtConcurrent::run(d, &QRayCastingServicePrivate::collides,
- ray, provider, mode, handle);
+ FutureQueryResult future = QtConcurrent::run([d, ray, provider, mode, handle]{
+ return d->collides(ray, provider, mode, handle);
+ });
d->m_results.insert(handle, future);
#else
d->m_results.insert(handle, d->collides(ray, provider, mode, handle));