fixes crash when enumerating on some systems

matches both sides for calling copy_from_slice in
gfxEnumeratePhysicalDevices()
This commit is contained in:
Gobrosse 2019-10-11 12:34:37 +02:00
parent 9926fe0729
commit 50a59c91de

View file

@ -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