Skip to content

Commit f1f8fbb

Browse files
FIXUP: rework extension dispatch commentary
1 parent 143b048 commit f1f8fbb

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

wgpu-hal/src/vulkan/instance.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,12 @@ impl super::Instance {
313313
extensions.push(khr::surface::NAME);
314314

315315
// Platform-specific WSI extensions
316-
//
317-
// Note: OpenHarmony (`target_env = "ohos"`) reports `target_os = "linux"` and is
318-
// unix, but has neither X11 nor Wayland. It must be excluded here and uses
319-
// `VK_OHOS_surface` instead (see below).
320316
if cfg!(all(
321317
unix,
322318
not(target_os = "android"),
323319
not(target_os = "macos"),
320+
// NOTE: OpenHarmony (`target_env = "ohos"`) reports `target_os = "linux"` and is
321+
// unix, but has neither X11 nor Wayland.
324322
not(target_env = "ohos")
325323
)) {
326324
// VK_KHR_xlib_surface

0 commit comments

Comments
 (0)