From ce6dc6870fff999cddaf28deec88a48e7d48eedf Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 20 Apr 2009 06:58:39 +0000 Subject: [PATCH] Disabled printing of available resolutions and extensions in debug builds. --- Source/OpenTK/Graphics/DisplayDevice.cs | 5 ----- Source/OpenTK/Graphics/GL/GLHelper.cs | 17 ++++++++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Source/OpenTK/Graphics/DisplayDevice.cs b/Source/OpenTK/Graphics/DisplayDevice.cs index 2523e574..660281b9 100644 --- a/Source/OpenTK/Graphics/DisplayDevice.cs +++ b/Source/OpenTK/Graphics/DisplayDevice.cs @@ -66,11 +66,6 @@ namespace OpenTK.Graphics Debug.Print("DisplayDevice {0} ({1}) supports {2} resolutions.", available_displays.Count, primary ? "primary" : "secondary", available_resolutions.Count); - - Debug.Indent(); - foreach (DisplayResolution res in available_resolutions) - Debug.Print(res == current_resolution ? String.Format(">> {0} <<", res.ToString()) : res.ToString()); - Debug.Unindent(); lock (display_lock) { diff --git a/Source/OpenTK/Graphics/GL/GLHelper.cs b/Source/OpenTK/Graphics/GL/GLHelper.cs index 457c0767..9b7edd0b 100644 --- a/Source/OpenTK/Graphics/GL/GLHelper.cs +++ b/Source/OpenTK/Graphics/GL/GLHelper.cs @@ -389,8 +389,6 @@ namespace OpenTK.Graphics //else // version = version_string.TrimStart(' '); - Debug.Print(version); - if (version.StartsWith("1.1")) { AvailableExtensions.Add("glversion11", true); @@ -451,6 +449,18 @@ namespace OpenTK.Graphics AvailableExtensions.Add("glversion21", true); AvailableExtensions.Add("glversion30", true); } + else if (version.StartsWith("3.1")) + { + AvailableExtensions.Add("glversion11", true); + AvailableExtensions.Add("glversion12", true); + AvailableExtensions.Add("glversion13", true); + AvailableExtensions.Add("glversion14", true); + AvailableExtensions.Add("glversion15", true); + AvailableExtensions.Add("glversion20", true); + AvailableExtensions.Add("glversion21", true); + AvailableExtensions.Add("glversion30", true); + AvailableExtensions.Add("glversion31", true); + } string extension_string = GL.GetString(StringName.Extensions); if (String.IsNullOrEmpty(extension_string)) @@ -460,9 +470,6 @@ namespace OpenTK.Graphics foreach (string ext in extensions) AvailableExtensions.Add(ext.Replace("_", String.Empty).ToLower(), true); - foreach (string s in AvailableExtensions.Keys) - Debug.Print(s); - rebuildExtensionList = false; }