diff options
author | Michael Jones <michael_jones> | 2022-06-23 00:36:33 +0300 |
---|---|---|
committer | Michael Jones <michael_p_jones@apple.com> | 2022-06-23 00:38:00 +0300 |
commit | 532b33973bb71f91a5962c9f9c63ff26bf51bd67 (patch) | |
tree | cc5847bb4e9abee75ae431a4ac210e107ef42f48 /intern/cycles/device/metal/device_impl.mm | |
parent | 328a911379d445c9acef1b67f429e8c3454dda6c (diff) |
Cycles: Tidy of KernelData patchup code
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D15267
Diffstat (limited to 'intern/cycles/device/metal/device_impl.mm')
-rw-r--r-- | intern/cycles/device/metal/device_impl.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/device/metal/device_impl.mm b/intern/cycles/device/metal/device_impl.mm index 0954f586d40..8edcd8d118d 100644 --- a/intern/cycles/device/metal/device_impl.mm +++ b/intern/cycles/device/metal/device_impl.mm @@ -627,7 +627,7 @@ void MetalDevice::const_copy_to(const char *name, void *host, size_t size) { if (strcmp(name, "data") == 0) { assert(size == sizeof(KernelData)); - memcpy((uint8_t *)&launch_params + offsetof(KernelParamsMetal, data), host, size); + memcpy((uint8_t *)&launch_params.data, host, sizeof(KernelData)); return; } |