diff options
author | Carsten Weisse <[email protected]> | 2006-12-11 13:10:28 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2006-12-11 13:10:28 +0000 |
commit | 6f71cae9e1fc48172eeef46f51336bd98217fb08 (patch) | |
tree | fccda03a65dc722c295e13b1ad329560007a5bda | |
parent | 562e5524336b0f89c81ac0882ae30cd7871bd1fc (diff) |
use the callback version of Jsr231Renderer only for Win32
-rw-r--r-- | src/jake2/render/Renderer.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/jake2/render/Renderer.java b/src/jake2/render/Renderer.java index cf2ee70..6600f4b 100644 --- a/src/jake2/render/Renderer.java +++ b/src/jake2/render/Renderer.java @@ -2,7 +2,7 @@ * Renderer.java * Copyright (C) 2003 * - * $Id: Renderer.java,v 1.9 2006-12-11 12:56:30 cawe Exp $ + * $Id: Renderer.java,v 1.10 2006-12-11 13:10:28 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -57,7 +57,12 @@ public class Renderer { } try { Class.forName("javax.media.opengl.GL"); - Class.forName("jake2.render.Jsr231cbRenderer"); + // TODO this is a hack for Win32 + if (System.getProperty("os.name").startsWith("Windows")) { + Class.forName("jake2.render.Jsr231cbRenderer"); + } else { + Class.forName("jake2.render.Jsr231Renderer"); + } } catch (ClassNotFoundException e) { // ignore the jogl drivers if runtime not in classpath } |