mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-10 02:41:47 +00:00
Fix desire_api_version broken by previous commit
This commit is contained in:
parent
f6c262c3ab
commit
f4d3f916f1
@ -602,14 +602,10 @@ detail::Result<Instance> InstanceBuilder::build() const {
|
||||
|
||||
uint32_t api_version = instance_version < VKB_VK_API_VERSION_1_1 ? instance_version : info.required_api_version;
|
||||
|
||||
if (info.desired_api_version > VKB_VK_API_VERSION_1_0) {
|
||||
if (instance_version > info.desired_api_version) {
|
||||
if (info.desired_api_version > VKB_VK_API_VERSION_1_0 && instance_version >= info.desired_api_version) {
|
||||
instance_version = info.desired_api_version;
|
||||
}
|
||||
if (api_version > info.desired_api_version) {
|
||||
api_version = info.desired_api_version;
|
||||
}
|
||||
}
|
||||
|
||||
VkApplicationInfo app_info = {};
|
||||
app_info.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO;
|
||||
|
Loading…
Reference in New Issue
Block a user