Log the gpu vendor into graphics.log

This commit is contained in:
Paul Chote
2011-03-30 21:14:49 +13:00
parent c746a3e81a
commit e63f9c34f8

View File

@@ -92,6 +92,7 @@ namespace OpenRA.Renderer.Glsl
{
Log.AddChannel("graphics", "graphics.log");
Log.Write("graphics", "Unsupported GPU: Missing extensions.");
Log.Write("graphics", "Vendor: {0}", Gl.glGetString(Gl.GL_VENDOR));
Log.Write("graphics", "Available extensions:");
Log.Write("graphics", extensions);
throw new InvalidProgramException("Unsupported GPU. See graphics.log for details.");