add using rather than fully qualifying StackTrace typename

This commit is contained in:
Chris Forbes
2011-07-12 09:46:24 +12:00
committed by Paul Chote
parent 6f477a2c14
commit 332d6d82fe

View File

@@ -9,6 +9,7 @@
#endregion #endregion
using System; using System;
using System.Diagnostics;
using System.Drawing; using System.Drawing;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
@@ -53,7 +54,7 @@ namespace OpenRA.Renderer.Glsl
var n = Gl.glGetError(); var n = Gl.glGetError();
if( n != Gl.GL_NO_ERROR ) if( n != Gl.GL_NO_ERROR )
{ {
var error = "GL Error: {0}\n{1}".F((GlError)n, new System.Diagnostics.StackTrace()); var error = "GL Error: {0}\n{1}".F((GlError)n, new StackTrace());
WriteGraphicsLog(error); WriteGraphicsLog(error);
throw new InvalidOperationException("OpenGL Error: See graphics.log for details."); throw new InvalidOperationException("OpenGL Error: See graphics.log for details.");
} }