From 731034414c8e5ef87db9c57ba057b5318a66f805 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 23 Jan 2008 00:19:42 +0000 Subject: [PATCH] Updated SupportsExtension functions. --- Source/OpenTK/Platform/Windows/WglHelper.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/OpenTK/Platform/Windows/WglHelper.cs b/Source/OpenTK/Platform/Windows/WglHelper.cs index 8dede925..3a082dd4 100644 --- a/Source/OpenTK/Platform/Windows/WglHelper.cs +++ b/Source/OpenTK/Platform/Windows/WglHelper.cs @@ -170,13 +170,13 @@ namespace OpenTK.Platform.Windows /// 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) + public static bool SupportsExtension(WinGLContext context, string ext) { if (Wgl.Delegates.wglGetExtensionsStringARB != null) { if (extensions == null || rebuildExtensionList) { - extensions = Wgl.Arb.GetExtensionsString(deviceContext).Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); + extensions = Wgl.Arb.GetExtensionsString(context.Device).Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); Array.Sort(extensions); rebuildExtensionList = false; } @@ -194,10 +194,9 @@ namespace OpenTK.Platform.Windows /// /// 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) + public static bool SupportsExtension(string ext) { if (Wgl.Delegates.wglGetExtensionsStringEXT != null) {