diff --git a/Source/OpenTK/Platform/Windows/WglHelper.cs b/Source/OpenTK/Platform/Windows/WglHelper.cs index 6252a1f1..9d266a4f 100644 --- a/Source/OpenTK/Platform/Windows/WglHelper.cs +++ b/Source/OpenTK/Platform/Windows/WglHelper.cs @@ -154,9 +154,9 @@ namespace OpenTK.Platform.Windows #endregion - #region public static partial class ARB - - public static partial class ARB + #region public static partial class Ext +#if false + public static partial class Ext { private static string[] extensions; @@ -168,11 +168,12 @@ namespace OpenTK.Platform.Windows /// True if the extension is supported by the given context, false otherwise public static bool SupportsExtension(IntPtr deviceContext, string ext) { - if (Wgl.Delegates.wglGetExtensionsStringARB != null) + if (Wgl.Delegates.wglGetExtensionsStringEXT != null) { if (extensions == null || reload_arb_extension_strings) { - extensions = Wgl.ARB.GetExtensionsString(deviceContext).Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); + // Defined wrong in wglext.spec... + extensions = Wgl.Ext.GetExtensionsString(deviceContext).Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); Array.Sort(extensions); reload_arb_extension_strings = false; } @@ -182,27 +183,25 @@ namespace OpenTK.Platform.Windows return false; } } - +#endif #endregion - #region public static partial class EXT - - public static partial class EXT + public static partial class Arb { private static string[] extensions; /// - /// Checks if an "EXT" extension is supported by the given context. + /// Checks if a Wgl extension is supported by the given context. /// /// The device context. /// The extension to check. /// True if the extension is supported by the given context, false otherwise public static bool SupportsExtension(IntPtr deviceContext, string ext) { - if (Wgl.Delegates.wglGetExtensionsStringEXT != null) + if (Wgl.Delegates.wglGetExtensionsStringARB != null) { if (extensions == null || reload_ext_extension_strings) { - extensions = Wgl.ARB.GetExtensionsString(deviceContext).Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); + extensions = Wgl.Arb.GetExtensionsString(deviceContext).Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); Array.Sort(extensions); reload_ext_extension_strings = false; } @@ -212,7 +211,5 @@ namespace OpenTK.Platform.Windows return false; } } - - #endregion } }