diff --git a/libportability-gfx/src/impls.rs b/libportability-gfx/src/impls.rs index 943a577..bf89f89 100644 --- a/libportability-gfx/src/impls.rs +++ b/libportability-gfx/src/impls.rs @@ -164,7 +164,7 @@ pub extern "C" fn gfxEnumeratePhysicalDevices( (VkResult::VK_SUCCESS, num_adapters) }; - output.copy_from_slice(&instance.adapters[..count]); + output[..count].copy_from_slice(&instance.adapters[..count]); unsafe { *pPhysicalDeviceCount = count as _ }; code