add using rather than fully qualifying StackTrace typename
This commit is contained in:
@@ -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.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user