Fixed a missing call to Debug.Unindent() during context construction.

This commit is contained in:
the_fiddler 2008-04-20 17:47:26 +00:00
parent dcce9fcf73
commit fef112ab46

View file

@ -57,6 +57,8 @@ namespace OpenTK.Graphics
else if (window == null) throw new ArgumentNullException("window", "Must point to a valid window."); else if (window == null) throw new ArgumentNullException("window", "Must point to a valid window.");
Debug.Print("Creating GraphicsContext."); Debug.Print("Creating GraphicsContext.");
try
{
Debug.Indent(); Debug.Indent();
Debug.Print("GraphicsMode: {0}", mode); Debug.Print("GraphicsMode: {0}", mode);
Debug.Print("IWindowInfo: {0}", window); Debug.Print("IWindowInfo: {0}", window);
@ -90,6 +92,11 @@ namespace OpenTK.Graphics
} }
//(implementation as IGraphicsContextInternal).LoadAll(); //(implementation as IGraphicsContextInternal).LoadAll();
} }
finally
{
Debug.Unindent();
}
}
#endregion #endregion