diff --git a/Source/OpenGL/OpenGL/Glu.cs b/Source/OpenGL/OpenGL/Glu.cs index 8fbc40eb..e8706164 100644 --- a/Source/OpenGL/OpenGL/Glu.cs +++ b/Source/OpenGL/OpenGL/Glu.cs @@ -53,14 +53,12 @@ namespace OpenTK.OpenGL public static string GetString(int name) { - IntPtr i = GetString_(name); - return Marshal.PtrToStringAnsi(i); + return Marshal.PtrToStringAnsi(GetString_(name)); } public static string ErrorString(int name) { - IntPtr i = ErrorString_(name); - return Marshal.PtrToStringAnsi(i); + return Marshal.PtrToStringAnsi(ErrorString_(name)); } #endregion diff --git a/Source/OpenGL/OpenGL/Wgl.cs b/Source/OpenGL/OpenGL/Wgl.cs index f0160e7e..e1b75c1c 100644 --- a/Source/OpenGL/OpenGL/Wgl.cs +++ b/Source/OpenGL/OpenGL/Wgl.cs @@ -21,7 +21,7 @@ namespace OpenTK.OpenGL /// public class Constant { - #region WGL constants. + #region WGL constants public const int WGLEXT_VERSION = 4; public const int FRONT_COLOR_BUFFER_BIT_ARB = 0x00000001; @@ -215,7 +215,7 @@ namespace OpenTK.OpenGL #endregion } - #region WGL functions. + #region WGL functions [DllImport(_dll_name)] public static extern int GetProcAddress(int hwnd); diff --git a/changelog.txt b/changelog.txt index 0686e410..ac4c5d20 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +OpenTK 0.3.1 -> 0.3.2 ++ OpenTK.OpenGL.Glu: Eliminated the temporary IntPtr variable in the GetString and ErrorString functions. + OpenTK 0.3.0 -> 0.3.1 + Updated the binding generator to version 0.7.4, based on the work done for Tao. + Updated the Context load functions. Now Context loads all functions are extensions, and the derived classes override this behavior as needed.