Use Option for api version

This commit is contained in:
hodasemi 2023-02-22 09:38:25 +01:00
parent eaff64a9d6
commit 7905957835

View file

@ -166,9 +166,9 @@ pub(crate) extern "system" fn create_instance(
proc_addr,
&ext_names,
if (*create_info).pApplicationInfo == ptr::null() {
VK_MAKE_VERSION(1, 3, 0)
None
} else {
(*(*create_info).pApplicationInfo).apiVersion
Some((*(*create_info).pApplicationInfo).apiVersion)
},
)
}) {