From c14bae994da3de949d93bc1b513b1ab82e51e9d0 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 3 Oct 2018 12:58:31 -0700 Subject: [PATCH] revert changes to vkGetDeviceProcAddr bug was caused by old version of libvulkan1.so; works with v1.1.82.1 --- vulkan-driver/src/api_impl.rs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/vulkan-driver/src/api_impl.rs b/vulkan-driver/src/api_impl.rs index 36d199d..f71d191 100644 --- a/vulkan-driver/src/api_impl.rs +++ b/vulkan-driver/src/api_impl.rs @@ -3502,25 +3502,11 @@ pub unsafe extern "system" fn vkGetDeviceProcAddr( device: api::VkDevice, name: *const ::std::os::raw::c_char, ) -> api::PFN_vkVoidFunction { - let retval = get_proc_address( + get_proc_address( name, GetProcAddressScope::Device, &SharedHandle::from(device).extensions, - ); - if let Ok(name) = CStr::from_ptr(name).to_str().map_err(|_| ()).and_then(|v| { - if v == "vkCreateSwapchainKHR" || true { - Ok(v) - } else { - Err(()) - } - }) { - eprintln!( - "vkGetDeviceProcAddr(device, {:?}) -> {:?}", - name, - retval.map(|v| v as *const ()) - ); - } - retval + ) } #[allow(non_snake_case)] -- 2.30.2