From 6f71cae9e1fc48172eeef46f51336bd98217fb08 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Mon, 11 Dec 2006 13:10:28 +0000 Subject: use the callback version of Jsr231Renderer only for Win32 --- src/jake2/render/Renderer.java | 9 +++++++-- 1 file 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 } -- cgit v1.2.3