Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/device/device_optix.cpp')
-rw-r--r--intern/cycles/device/device_optix.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/intern/cycles/device/device_optix.cpp b/intern/cycles/device/device_optix.cpp
index fbf6a914744..2d99a943015 100644
--- a/intern/cycles/device/device_optix.cpp
+++ b/intern/cycles/device/device_optix.cpp
@@ -1463,13 +1463,15 @@ class OptiXDevice : public CUDADevice {
void task_add(DeviceTask &task) override
{
- struct OptiXDeviceTask : public DeviceTask {
- OptiXDeviceTask(OptiXDevice *device, DeviceTask &task, int task_index) : DeviceTask(task)
+ struct OptiXDeviceTask : public Task {
+ OptiXDeviceTask(OptiXDevice *device, DeviceTask &task, int task_index) : task(task)
{
// Using task index parameter instead of thread index, since number of CUDA streams may
// differ from number of threads
- run = function_bind(&OptiXDevice::thread_run, device, *this, task_index);
+ run = function_bind(&OptiXDevice::thread_run, device, task, task_index);
}
+
+ DeviceTask task;
};
// Upload texture information to device if it has changed since last launch