mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-22 23:11:30 +11:00
fixes crash when enumerating on some systems
matches both sides for calling copy_from_slice in gfxEnumeratePhysicalDevices()
This commit is contained in:
parent
9926fe0729
commit
50a59c91de
|
@ -164,7 +164,7 @@ pub extern "C" fn gfxEnumeratePhysicalDevices(
|
||||||
(VkResult::VK_SUCCESS, num_adapters)
|
(VkResult::VK_SUCCESS, num_adapters)
|
||||||
};
|
};
|
||||||
|
|
||||||
output.copy_from_slice(&instance.adapters[..count]);
|
output[..count].copy_from_slice(&instance.adapters[..count]);
|
||||||
unsafe { *pPhysicalDeviceCount = count as _ };
|
unsafe { *pPhysicalDeviceCount = count as _ };
|
||||||
|
|
||||||
code
|
code
|
||||||
|
|
Loading…
Reference in a new issue