From 339e1bcdb3863ea1a23fa0ef147f160d04e8daba Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 26 Jun 2009 21:05:23 +0000 Subject: [PATCH] Get[Program|Shader]InfoLog now return strings directly (instead of out parameters). --- Source/OpenTK/Graphics/GL/GLHelper.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Source/OpenTK/Graphics/GL/GLHelper.cs b/Source/OpenTK/Graphics/GL/GLHelper.cs index deaa9c9b..790c6caa 100644 --- a/Source/OpenTK/Graphics/GL/GLHelper.cs +++ b/Source/OpenTK/Graphics/GL/GLHelper.cs @@ -911,6 +911,17 @@ namespace OpenTK.Graphics } } + #endregion + + #region public static string GetShaderInfoLog(Int32 shader) + + public static string GetShaderInfoLog(Int32 shader) + { + string info; + GetShaderInfoLog(shader, out info); + return info; + } + #endregion #region public static void GetShaderInfoLog(Int32 shader, out string info) @@ -932,6 +943,17 @@ namespace OpenTK.Graphics } } + #endregion + + #region public static string GetProgramInfoLog(Int32 program) + + public static string GetProgramInfoLog(Int32 program) + { + string info; + GetProgramInfoLog(program, out info); + return info; + } + #endregion #region public static void GetProgramInfoLog(Int32 program, out string info)