Disabled printing of available resolutions and extensions in debug builds.

This commit is contained in:
the_fiddler 2009-04-20 06:58:39 +00:00
parent 0ecdd1c9e3
commit 675e8378ca
2 changed files with 12 additions and 10 deletions

View file

@ -67,11 +67,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)
{
available_displays.Add(this);

View file

@ -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;
}