Saving Private Windows

This commit is contained in:
CamilleLaVey
2025-11-30 03:08:31 -04:00
committed by Caio Oliveira
parent 1164f17d8f
commit 01faf544e8
2 changed files with 11 additions and 10 deletions
@@ -1070,14 +1070,15 @@ bool Device::GetSuitability(bool requires_swapchain) {
// Set next pointer.
void** next = &features2.pNext;
// Vulkan 1.2 and 1.3 features
// Vulkan 1.2 and 1.3 features
if (instance_version >= VK_API_VERSION_1_2) {
features_1_2.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES;
SetNext(next, features_1_2);
features_1_2.pNext = nullptr;
*next = &features_1_2;
if (instance_version >= VK_API_VERSION_1_3) {
features_1_3.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES;
SetNext(next, features_1_3);
features_1_3.pNext = nullptr;
features_1_2.pNext = &features_1_3;
}
}