From e35d1ebe07a7c7c1f0bcd6c01ecbecff7eabb402 Mon Sep 17 00:00:00 2001 From: Christophe Date: Thu, 10 Aug 2023 20:48:58 +0200 Subject: [PATCH] library: Fix library generation when using profiles with multiple variants #464 --- CHANGELOG.md | 1 + scripts/gen_profiles_solution.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5a5a060..c3be2248 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ ### Bugfixes: - Fix query of capabilities of aliased extensions - Fix error message typo +- Fix library generation when using profiles with multiple variants #464 ## [Vulkan Profiles Toolset 1.3.250](https://github.com/KhronosGroup/Vulkan-Profiles/tree/sdk-1.3.250.0) - June 2023 diff --git a/scripts/gen_profiles_solution.py b/scripts/gen_profiles_solution.py index 3cd7f12a..6b6d8e5c 100644 --- a/scripts/gen_profiles_solution.py +++ b/scripts/gen_profiles_solution.py @@ -2206,7 +2206,7 @@ def __init__(self, registry, data, caps): # When we have multiple possible capabilities blocks, we load them all but effectively the API library can't effectively implement this behavior. if type(capName).__name__ == 'list': for capNameCase in capName: - self.mergeCaps(registry, caps[capNameElement]) + self.mergeCaps(registry, caps[capNameCase]) elif capName in caps: self.mergeCaps(registry, caps[capName]) else: