From: thefiddler Date: Thu, 14 Aug 2014 08:50:26 +0000 (+0200) Subject: [Bind] Hardcode some common OpenGL IHV names X-Git-Tag: 2.0-0~93^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a05ffb86541d6db4c1cef46b03812d3b3e284d65;p=platform%2Fcore%2Fcsapi%2Fopentk.git [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. --- 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) {