Use Option for api version
This commit is contained in:
parent
eaff64a9d6
commit
7905957835
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
},
|
||||
)
|
||||
}) {
|
||||
|
|
Loading…
Reference in a new issue