diff --git a/Source/OpenTK/Graphics/OpenGL/GLHelper.cs b/Source/OpenTK/Graphics/OpenGL/GLHelper.cs index 5fdc8ccb..90d1fd3e 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLHelper.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLHelper.cs @@ -52,9 +52,6 @@ namespace OpenTK.Graphics.OpenGL internal const string Library = "opengl32.dll"; - static StringBuilder sb = new StringBuilder(); - static object gl_lock = new object(); - private static SortedList AvailableExtensions = new SortedList(); #endregion @@ -202,7 +199,7 @@ namespace OpenTK.Graphics.OpenGL } #endregion -#endif + #region private static void BuildExtensionList() /// @@ -335,34 +332,7 @@ namespace OpenTK.Graphics.OpenGL } #endregion - - #region GetAddress - - /// - /// Retrieves the entry point for a dynamically exported OpenGL function. - /// - /// The function string for the OpenGL function (eg. "glNewList") - /// - /// An IntPtr contaning the address for the entry point, or IntPtr.Zero if the specified - /// OpenGL function is not dynamically exported. - /// - /// - /// - /// The Marshal.GetDelegateForFunctionPointer method can be used to turn the return value - /// into a call-able delegate. - /// - /// - /// This function is cross-platform. It determines the underlying platform and uses the - /// correct wgl, glx or agl GetAddress function to retrieve the function pointer. - /// - /// - private static IntPtr GetAddress(string function) - { - return (GraphicsContext.CurrentContext as IGraphicsContextInternal).GetAddress(function); - } - - #endregion - +#endif #endregion #region --- GL Overloads ---