adding generated opengl function binding

This commit is contained in:
Youmu Liu
2025-12-29 18:10:59 +08:00
parent f9288c1b3d
commit b7c32bdf6d
2 changed files with 9 additions and 17 deletions
+3 -2
View File
@@ -125,9 +125,10 @@ namespace GenerateGL.CodeGen
string? profile = feature.Attribute("profile")?.Value;
// Keep core; also accept missing profile (core by default)
// accept core, compatibility, or missing profile
if (!string.IsNullOrEmpty(profile) &&
!string.Equals(profile, "core", StringComparison.Ordinal))
!string.Equals(profile, "core", StringComparison.Ordinal) &&
!string.Equals(profile, "compatibility", StringComparison.Ordinal))
{
continue;
}