aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/fastjogl
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2004-11-10 20:35:36 +0000
committerCarsten Weisse <[email protected]>2004-11-10 20:35:36 +0000
commit2bbeb9408b3703d2e4a711c2fff7b0cdbeb547e6 (patch)
tree37bae91d44188795dd3c077860d119dbf036f665 /src/jake2/render/fastjogl
parentdbb8df07b0263b857ce4013ac0f44ac90072e0bd (diff)
this is the right method to get the readable lenght or size
(capacity() doesn't work with sliced buffers)
Diffstat (limited to 'src/jake2/render/fastjogl')
-rw-r--r--src/jake2/render/fastjogl/Image.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jake2/render/fastjogl/Image.java b/src/jake2/render/fastjogl/Image.java
index 77ab6e2..48c206a 100644
--- a/src/jake2/render/fastjogl/Image.java
+++ b/src/jake2/render/fastjogl/Image.java
@@ -2,7 +2,7 @@
* Image.java
* Copyright (C) 2003
*
- * $Id: Image.java,v 1.7 2004-10-20 19:20:14 cawe Exp $
+ * $Id: Image.java,v 1.8 2004-11-10 20:35:36 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -463,7 +463,7 @@ public abstract class Image extends Main {
if (palette != null) {
palette[0] = new byte[768];
- raw.position(raw.capacity() - 768);
+ raw.position(raw.limit() - 768);
raw.get(palette[0]);
}