revert changes to vkGetDeviceProcAddr
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 3 Oct 2018 19:58:31 +0000 (12:58 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Wed, 3 Oct 2018 19:58:31 +0000 (12:58 -0700)
bug was caused by old version of libvulkan1.so; works with v1.1.82.1

vulkan-driver/src/api_impl.rs

index 36d199dbc40b697a0fd2d2dd961d81da9ed0f91e..f71d19124ad8fa4d2f43231e35a41dbe09bb0778 100644 (file)
@@ -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)]