From a05ffb86541d6db4c1cef46b03812d3b3e284d65 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Thu, 14 Aug 2014 10:50:26 +0200 Subject: [PATCH] [Bind] Hardcode some common OpenGL IHV names These names are present in ES enums, even if no function uses them. We need them for backwards-compatibility. --- Source/Bind/Utilities.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Source/Bind/Utilities.cs b/Source/Bind/Utilities.cs index 5df53a4..309738d 100644 --- a/Source/Bind/Utilities.cs +++ b/Source/Bind/Utilities.cs @@ -104,7 +104,15 @@ namespace Bind public static Regex Extensions { get; private set; } public static Regex Acronyms { get; private set; } - static List extension_names = new List(); + // Both GL and ES contains SGI extension enums, even though no function + // uses them. This is a remnant from the glory days of gl.spec and GL 1.1. + // Note: REMOVING THESE WILL BREAK BINARY-COMPATIBILITY WITH OPENTK 1.0, + // WRT THE ES 1.1 API. + // You have been warned. + static List extension_names = new List + { + "SGI", "SGIS", "SGIX", "IBM", "AMD", "INTEL", + }; public static void AddExtensions(IEnumerable extensions) { -- 2.7.4