diff options
author | Carsten Weisse <[email protected]> | 2004-12-16 21:55:58 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2004-12-16 21:55:58 +0000 |
commit | cac5258eab7d100c317ff68764bba963c52d5d77 (patch) | |
tree | 769ba135bc478da6eb94ccfb336465f41bac53eb | |
parent | 98bb4c0e7d65d7d5e8bb4264c6334fbf8bf4bf5a (diff) |
vertexarray reset at the end of level loading not in the main loop
-rw-r--r-- | src/jake2/render/lwjgl/Model.java | 3 | ||||
-rw-r--r-- | src/jake2/render/lwjgl/Surf.java | 6 |
2 files changed, 4 insertions, 5 deletions
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; |