[Bind] Hardcode some common OpenGL IHV names
authorthefiddler <stapostol@gmail.com>
Thu, 14 Aug 2014 08:50:26 +0000 (10:50 +0200)
committerthefiddler <stapostol@gmail.com>
Tue, 2 Sep 2014 11:04:14 +0000 (13:04 +0200)
These names are present in ES enums, even if no function uses them. We
need them for backwards-compatibility.

Source/Bind/Utilities.cs

index 5df53a4..309738d 100644 (file)
@@ -104,7 +104,15 @@ namespace Bind
         public static Regex Extensions { get; private set; }
         public static Regex Acronyms { get; private set; }
 
-        static List<string> extension_names = new List<string>();
+        // 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<string> extension_names = new List<string>
+        {
+            "SGI", "SGIS", "SGIX", "IBM", "AMD", "INTEL", 
+        };
 
         public static void AddExtensions(IEnumerable<string> extensions)
         {