OpenGL Version fix
- Index: GL_Display.cs
- ===================================================================
- --- GL_Display.cs (revision 1049)
- +++ GL_Display.cs (working copy)
- @@ -397,6 +397,9 @@
- string versionString = GL.GetString(StringName.Version);
- string ext = GL.GetString(StringName.Extensions);
- + string decimal_sep = System.Globalization.NumberFormatInfo.CurrentInfo.CurrencyDecimalSeparator;
- + versionString = versionString.Replace(".", decimal_sep);
- + versionString = versionString.Replace(",", decimal_sep);
- mGLVersion = decimal.Parse(versionString.Substring(0, 3));
- mSupportsShaders = false;
I think this line always return decimal value but with '.' as delimiter:
string versionString = GL.GetString(StringName.Version);
If your system delimiter (for example, in russian - ',') is different your will get exception. This patch will fix it.
Sorry for my bad English.
Thanks for the patch. I have made an issue to track it, and I will try to apply it this weekend.
http://www.agatelib.org/node/156