diff options
author | Carsten Weisse <[email protected]> | 2006-11-21 00:52:51 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2006-11-21 00:52:51 +0000 |
commit | 17b95195843d63063d989d6a99893ae6300f5ba5 (patch) | |
tree | 4ccd4fa9039724687039209c039344f285ef0b16 /src/jake2/render/glconfig_t.java | |
parent | 6cfce25cd7b75c03ee2fc6b238e68f7e4cabb058 (diff) |
merge render-refactoring branch into the HEAD
Diffstat (limited to 'src/jake2/render/glconfig_t.java')
-rw-r--r-- | src/jake2/render/glconfig_t.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jake2/render/glconfig_t.java b/src/jake2/render/glconfig_t.java index 8e4f49c..075dab9 100644 --- a/src/jake2/render/glconfig_t.java +++ b/src/jake2/render/glconfig_t.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 20.11.2003 by RST. -// $Id: glconfig_t.java,v 1.2 2005-05-07 18:23:26 cawe Exp $ +// $Id: glconfig_t.java,v 1.3 2006-11-21 00:51:22 cawe Exp $ package jake2.render; @@ -36,7 +36,11 @@ public class glconfig_t { private float version = 1.1f; public void parseOpenGLVersion() { - version = Float.parseFloat(version_string.substring(0, 3)); + try { + version = Float.parseFloat(version_string.substring(0, 3)); + } catch (Exception e) { + version = 1.1f; + } } public float getOpenGLVersion() { |