diff --git a/Source/OpenTK/Platform/Windows/WglHelper.cs b/Source/OpenTK/Platform/Windows/WglHelper.cs index d342a473..871d19c2 100644 --- a/Source/OpenTK/Platform/Windows/WglHelper.cs +++ b/Source/OpenTK/Platform/Windows/WglHelper.cs @@ -15,7 +15,7 @@ using OpenTK.Graphics; namespace OpenTK.Platform.Windows { - internal partial class Wgl : GraphicsBindingsBase + internal partial class Wgl { static IntPtr[] EntryPoints; static string[] EntryPointNames; @@ -29,8 +29,6 @@ namespace OpenTK.Platform.Windows public Wgl() { - EntryPointsInstance = EntryPoints; - EntryPointNamesInstance = EntryPointNames; } #region Public Members @@ -102,12 +100,12 @@ namespace OpenTK.Platform.Windows #region Protected Members - protected override object SyncRoot + protected object SyncRoot { get { return sync; } } - protected override IntPtr GetAddress(string function_string) + IntPtr GetAddress(string function_string) { IntPtr address = Wgl.GetProcAddress(function_string); if (!IsValid(address)) @@ -133,15 +131,15 @@ namespace OpenTK.Platform.Windows #region Internal Members - internal override void LoadEntryPoints() + internal void LoadEntryPoints() { lock (SyncRoot) { if (Wgl.GetCurrentContext() != IntPtr.Zero) { - for (int i = 0; i < EntryPointsInstance.Length; i++) + for (int i = 0; i < EntryPointNames.Length; i++) { - EntryPointsInstance[i] = GetAddress(EntryPointNamesInstance[i]); + EntryPoints[i] = GetAddress(EntryPointNames[i]); } extensions.Clear(); }