Debug message when creating default GraphicsMode.

This commit is contained in:
the_fiddler 2008-03-23 12:55:33 +00:00
parent 4123fbfeab
commit c34440903f

View file

@ -9,6 +9,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
using System.Diagnostics;
namespace OpenTK.Graphics namespace OpenTK.Graphics
{ {
@ -296,7 +297,11 @@ namespace OpenTK.Graphics
get get
{ {
if (defaultMode == null) if (defaultMode == null)
{
Debug.Print("Creating default GraphicsMode ({0}, {1}, {2}, {3}, {4}, {5}, {6}).", DisplayDevice.Default.BitsPerPixel,
16, 0, 0, 0, 2, false);
defaultMode = new GraphicsMode(DisplayDevice.Default.BitsPerPixel, 16, 0, 0, 0, 2, false); defaultMode = new GraphicsMode(DisplayDevice.Default.BitsPerPixel, 16, 0, 0, 0, 2, false);
}
return defaultMode; return defaultMode;
} }
} }