From d245773e58f45c830040a1c37aa0a80d9a7b1639 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 20 Feb 2009 18:33:30 +0000 Subject: [PATCH] Fixed version strings in GL.SupportsExtension(). --- Source/OpenTK/Graphics/GL/GLHelper.cs | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Source/OpenTK/Graphics/GL/GLHelper.cs b/Source/OpenTK/Graphics/GL/GLHelper.cs index e9bc5798..d7bb103f 100644 --- a/Source/OpenTK/Graphics/GL/GLHelper.cs +++ b/Source/OpenTK/Graphics/GL/GLHelper.cs @@ -420,32 +420,32 @@ namespace OpenTK.Graphics else if (version.StartsWith("1.3")) { AvailableExtensions.Add("glversion11", true); - AvailableExtensions.Add("gl_version_1_2", true); - AvailableExtensions.Add("gl_version_1_3", true); + AvailableExtensions.Add("glversion12", true); + AvailableExtensions.Add("glversion13", true); } else if (version.StartsWith("1.4")) { AvailableExtensions.Add("glversion11", true); - AvailableExtensions.Add("gl_version_1_2", true); - AvailableExtensions.Add("gl_version_1_3", true); - AvailableExtensions.Add("gl_version_1_4", true); + AvailableExtensions.Add("glversion12", true); + AvailableExtensions.Add("glversion13", true); + AvailableExtensions.Add("glversion14", true); } else if (version.StartsWith("1.5")) { - AvailableExtensions.Add("gl_version_1_1", true); - AvailableExtensions.Add("gl_version_1_2", true); - AvailableExtensions.Add("gl_version_1_3", true); - AvailableExtensions.Add("gl_version_1_4", true); - AvailableExtensions.Add("gl_version_1_5", true); + AvailableExtensions.Add("glversion11", true); + AvailableExtensions.Add("glversion12", true); + AvailableExtensions.Add("glversion13", true); + AvailableExtensions.Add("glversion14", true); + AvailableExtensions.Add("glversion15", true); } else if (version.StartsWith("2.0")) { AvailableExtensions.Add("glversion11", true); - AvailableExtensions.Add("gl_version_1_2", true); - AvailableExtensions.Add("gl_version_1_3", true); - AvailableExtensions.Add("gl_version_1_4", true); - AvailableExtensions.Add("gl_version_1_5", true); - AvailableExtensions.Add("gl_version_2_0", true); + AvailableExtensions.Add("glversion12", true); + AvailableExtensions.Add("glversion13", true); + AvailableExtensions.Add("glversion14", true); + AvailableExtensions.Add("glversion15", true); + AvailableExtensions.Add("glversion20", true); } else if (version.StartsWith("2.1")) {