From cac5258eab7d100c317ff68764bba963c52d5d77 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Thu, 16 Dec 2004 21:55:58 +0000 Subject: vertexarray reset at the end of level loading not in the main loop --- src/jake2/render/lwjgl/Model.java | 3 ++- src/jake2/render/lwjgl/Surf.java | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/jake2/render/lwjgl/Model.java b/src/jake2/render/lwjgl/Model.java index 35ccc70..bdfbd81 100644 --- a/src/jake2/render/lwjgl/Model.java +++ b/src/jake2/render/lwjgl/Model.java @@ -2,7 +2,7 @@ * Model.java * Copyright (C) 2003 * - * $Id: Model.java,v 1.2 2004-12-14 12:56:59 cawe Exp $ + * $Id: Model.java,v 1.3 2004-12-16 21:55:58 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -1261,6 +1261,7 @@ public abstract class Model extends Surf { } } GL_FreeUnusedImages(); + resetPolygonArrays(); //modelMemoryUsage(); } diff --git a/src/jake2/render/lwjgl/Surf.java b/src/jake2/render/lwjgl/Surf.java index 5dd17f4..f76d011 100644 --- a/src/jake2/render/lwjgl/Surf.java +++ b/src/jake2/render/lwjgl/Surf.java @@ -2,7 +2,7 @@ * Surf.java * Copyright (C) 2003 * - * $Id: Surf.java,v 1.3 2004-12-16 00:47:17 dsanders1234 Exp $ + * $Id: Surf.java,v 1.4 2004-12-16 21:55:58 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -763,9 +763,6 @@ public abstract class Surf extends Draw { e.angles[0] = -e.angles[0]; // stupid quake bug e.angles[2] = -e.angles[2]; // stupid quake bug - globalPolygonInterleavedBuf.rewind(); - globalPolygonTexCoord1Buf.rewind(); - GL_EnableMultitexture( true ); GL_SelectTexture(GL_TEXTURE0); GL_TexEnv( GL11.GL_REPLACE ); @@ -1457,6 +1454,7 @@ public abstract class Surf extends Draw { public static void resetPolygonArrays() { globalPolygonInterleavedBuf.rewind(); + globalPolygonTexCoord1Buf.rewind(); } //ImageFrame frame; -- cgit v1.2.3