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,13 +602,9 @@ detail::Result<Instance> InstanceBuilder::build() const {
|
|||||||
|
|
||||||
uint32_t api_version = instance_version < VKB_VK_API_VERSION_1_1 ? instance_version : info.required_api_version;
|
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 (info.desired_api_version > VKB_VK_API_VERSION_1_0 && instance_version >= info.desired_api_version) {
|
||||||
if (instance_version > info.desired_api_version) {
|
instance_version = info.desired_api_version;
|
||||||
instance_version = info.desired_api_version;
|
api_version = info.desired_api_version;
|
||||||
}
|
|
||||||
if (api_version > info.desired_api_version) {
|
|
||||||
api_version = info.desired_api_version;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VkApplicationInfo app_info = {};
|
VkApplicationInfo app_info = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user