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:
authorMichael Jones <michael_jones>2022-06-23 00:36:33 +0300
committerMichael Jones <michael_p_jones@apple.com>2022-06-23 00:38:00 +0300
commit532b33973bb71f91a5962c9f9c63ff26bf51bd67 (patch)
treecc5847bb4e9abee75ae431a4ac210e107ef42f48 /intern/cycles
parent328a911379d445c9acef1b67f429e8c3454dda6c (diff)
Cycles: Tidy of KernelData patchup code
Reviewed By: sergey Differential Revision: https://developer.blender.org/D15267
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/device/metal/device_impl.mm2
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;
}