Cycles: Tidy of KernelData patchup code
Reviewed By: sergey Differential Revision: https://developer.blender.org/D15267
This commit is contained in:
parent
328a911379
commit
532b33973b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue