backend/wayland/vulkan: Enable VK_EXT_physical_device_drm extension
Fixes a segfault when run with `--no-default-features` to disable `wgpu`.
This commit is contained in:
parent
1a1b107259
commit
d31c6dbccb
1 changed files with 3 additions and 1 deletions
|
|
@ -14,10 +14,12 @@ impl Vulkan {
|
|||
api_version: vk::make_api_version(0, 1, 1, 0),
|
||||
..Default::default()
|
||||
};
|
||||
let extensions = &[c"VK_EXT_physical_device_drm".as_ptr()];
|
||||
let create_info = vk::InstanceCreateInfo {
|
||||
p_application_info: &app_info,
|
||||
..Default::default()
|
||||
};
|
||||
}
|
||||
.enabled_extension_names(extensions);
|
||||
let instance = unsafe { entry.create_instance(&create_info, None).ok()? };
|
||||
Some(Self {
|
||||
instance,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue