From 8c9312fe3dfc24438c39733890f27707ac869c99 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Thu, 16 Dec 2004 00:47:17 +0000 Subject: Added two rewind statements for nio buffers, which fixes a graphics bug. --- src/jake2/render/lwjgl/Surf.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ); -- cgit v1.2.3