Disabled printing of available resolutions and extensions in debug builds.
This commit is contained in:
parent
157ac7b3e2
commit
ce6dc6870f
2 changed files with 12 additions and 10 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue