From 7493aeb412afb3e69a808d66d4caac6cdce64349 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 23 Mar 2008 12:55:33 +0000 Subject: [PATCH] Debug message when creating default GraphicsMode. --- Source/OpenTK/Graphics/GraphicsMode.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/OpenTK/Graphics/GraphicsMode.cs b/Source/OpenTK/Graphics/GraphicsMode.cs index 2d9870a6..72c87882 100644 --- a/Source/OpenTK/Graphics/GraphicsMode.cs +++ b/Source/OpenTK/Graphics/GraphicsMode.cs @@ -9,6 +9,7 @@ using System; using System.Collections.Generic; using System.Text; +using System.Diagnostics; namespace OpenTK.Graphics { @@ -296,7 +297,11 @@ namespace OpenTK.Graphics get { 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); + } return defaultMode; } }