aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2
diff options
context:
space:
mode:
authorDavid Sanders <[email protected]>2004-12-16 00:47:17 +0000
committerDavid Sanders <[email protected]>2004-12-16 00:47:17 +0000
commit8c9312fe3dfc24438c39733890f27707ac869c99 (patch)
treeb37e8028ed96a1ec1217db6edd38e4b45eb0ef6f /src/jake2
parenta0f3684e6ee25517ab03f7514458b1849769ace5 (diff)
Added two rewind statements for nio buffers,
which fixes a graphics bug.
Diffstat (limited to 'src/jake2')
-rw-r--r--src/jake2/render/lwjgl/Surf.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jake2/render/lwjgl/Surf.java b/src/jake2/render/lwjgl/Surf.java
index b731b6e..5dd17f4 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.2 2004-12-14 12:56:59 cawe Exp $
+ * $Id: Surf.java,v 1.3 2004-12-16 00:47:17 dsanders1234 Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -763,6 +763,9 @@ 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 );