From 2cf7ebe4c01a3aae0b8b1255136fc55acc1859bb Mon Sep 17 00:00:00 2001 From: Kyle Mayes Date: Sun, 1 Sep 2024 20:36:12 -0400 Subject: [PATCH] Fix handling of feature tags in vk.xml --- .../src/main/kotlin/com/kylemayes/generator/registry/Extract.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/src/main/kotlin/com/kylemayes/generator/registry/Extract.kt b/generator/src/main/kotlin/com/kylemayes/generator/registry/Extract.kt index 61a7542..0066f47 100644 --- a/generator/src/main/kotlin/com/kylemayes/generator/registry/Extract.kt +++ b/generator/src/main/kotlin/com/kylemayes/generator/registry/Extract.kt @@ -75,7 +75,7 @@ fun extractEntities(e: Element): Registry { handles = e.queryEntities("types/type[@category='handle' and not(@alias)]", ::extractHandle), structs = e.queryEntities("types/type[@category='struct' and not(@alias)]", ::extractStructure), unions = e.queryEntities("types/type[@category='union' and not(@alias)]", ::extractStructure), - versions = e.getEntities("feature", ::extractVersion), + versions = e.queryEntities("feature[@api]", ::extractVersion), ) }