From 6b03d0f45995ada597dbc3557eed212ebeb7b927 Mon Sep 17 00:00:00 2001 From: alvinluke <167621375+alvinluke@users.noreply.github.com> Date: Mon, 26 May 2025 06:24:59 -0300 Subject: [PATCH] Fix compiling with Ash feature Fix compiling with Ash (Vulkan lib) feature enabled. '0 as _;' was givin errors. --- src/sdl3/video.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl3/video.rs b/src/sdl3/video.rs index ad05ee96..c56b7a61 100644 --- a/src/sdl3/video.rs +++ b/src/sdl3/video.rs @@ -1709,7 +1709,7 @@ impl Window { let mut surface: VkSurfaceKHR = VkSurfaceKHR::default(); #[cfg(not(feature = "ash"))] - let mut surface: VkSurfaceKHR = 0 as _; + let mut surface: VkSurfaceKHR = VkSurfaceKHR::null(); if unsafe { sys::vulkan::SDL_Vulkan_CreateSurface(self.context.raw, instance, null(), &mut surface) } {