From fd3d6d767cb0ef079e430545d27760f91c182758 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 3 Jul 2003 00:09:30 +0000 Subject: Added pbuffer support to JOGL on X11; HWShadowmapsSimple and ProceduralTexturePhysics demos are now working on Linux with the appropriate hardware. Moved core GLX routines out of the public GLX interface; this allowed XVisualInfo (and the new GLXFBConfig) to be removed from the public API. Added support to GlueGen for returning arrays of pointers as arrays of StructAccessors in Java and for choosing the typedef name for a pointer-to-struct if the struct itself does not have a typedef name. Added support to GLEmitter to emit ProcAddressTables under arbitrary names and to support arbitrary mechanisms for fetching those tables. Made GLU (on all platforms) and GLX (on X11) be dynamically linked. Refactored ProcAddressTable filling to be mostly shared code. Tested changes on Linux, Mac OS X and Windows. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@9 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/demos/util/MD2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/demos/util') diff --git a/src/demos/util/MD2.java b/src/demos/util/MD2.java index 25ba88f..d58b953 100644 --- a/src/demos/util/MD2.java +++ b/src/demos/util/MD2.java @@ -493,7 +493,7 @@ public class MD2 { pos += numRead; } avail = in.available(); - } while (numRead >= 0); + } while (avail > 0 && numRead >= 0); ByteBuffer buf = ByteBuffer.allocateDirect(pos); buf.put(data, 0, pos); buf.rewind(); -- cgit v1.2.3