Browse Source

vulkan: fix to work with latest Vulkan SDK

rdb 5 years ago
parent
commit
06504ae029
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/vulkandisplay/vulkanGraphicsPipe.cxx

+ 2 - 2
panda/src/vulkandisplay/vulkanGraphicsPipe.cxx

@@ -78,7 +78,7 @@ VulkanGraphicsPipe() : _max_allocation_size(0) {
   }
 
   const char *const layers[] = {
-    "VK_LAYER_LUNARG_standard_validation",
+    "VK_LAYER_KHRONOS_validation",
   };
 
   std::vector<const char *> extensions;
@@ -594,7 +594,7 @@ VulkanGraphicsPipe() : _max_allocation_size(0) {
       "ASTC_12x12_SRGB_BLOCK",
     };
 
-    for (int i = 1; i < VK_FORMAT_RANGE_SIZE; ++i) {
+    for (int i = 1; i <= VK_FORMAT_ASTC_12x12_SRGB_BLOCK; ++i) {
       VkFormatProperties fmt_props;
       vkGetPhysicalDeviceFormatProperties(_gpu, (VkFormat)i, &fmt_props);