Add application info workaround
This commit is contained in:
parent
8e09841dad
commit
8b3186094d
2 changed files with 6 additions and 2 deletions
|
@ -7,7 +7,7 @@ pkgdesc="Vulkan overlay layer for rFactor 2"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://gavania.de/hodasemi/${_pkgbase}"
|
url="https://gavania.de/hodasemi/${_pkgbase}"
|
||||||
license=('GPL-3.0')
|
license=('GPL-3.0')
|
||||||
makedepends=('rust' 'ctags' 'glslang')
|
makedepends=('rust' 'ctags' 'glslang' 'vulkan-headers')
|
||||||
depends=()
|
depends=()
|
||||||
conflicts=("${_pkgbase}")
|
conflicts=("${_pkgbase}")
|
||||||
source=("git+${url}")
|
source=("git+${url}")
|
||||||
|
|
|
@ -153,7 +153,11 @@ pub(crate) extern "system" fn create_instance(
|
||||||
*instance,
|
*instance,
|
||||||
proc_addr,
|
proc_addr,
|
||||||
&ext_names,
|
&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,
|
Ok(panic_ok) => panic_ok,
|
||||||
|
|
Loading…
Reference in a new issue