Add application info workaround

This commit is contained in:
hodasemi 2023-02-21 19:23:10 +01:00
parent 8e09841dad
commit 8b3186094d
2 changed files with 6 additions and 2 deletions

View file

@ -7,7 +7,7 @@ pkgdesc="Vulkan overlay layer for rFactor 2"
arch=('x86_64')
url="https://gavania.de/hodasemi/${_pkgbase}"
license=('GPL-3.0')
makedepends=('rust' 'ctags' 'glslang')
makedepends=('rust' 'ctags' 'glslang' 'vulkan-headers')
depends=()
conflicts=("${_pkgbase}")
source=("git+${url}")

View file

@ -153,7 +153,11 @@ pub(crate) extern "system" fn create_instance(
*instance,
proc_addr,
&ext_names,
(*(*create_info).pApplicationInfo).apiVersion,
if (*create_info).pApplicationInfo == ptr::null() {
VK_MAKE_VERSION(1, 3, 0)
} else {
(*(*create_info).pApplicationInfo).apiVersion
},
)
}) {
Ok(panic_ok) => panic_ok,