From db0bdc71eec40d7fcd22ddcea87178c8805d4312 Mon Sep 17 00:00:00 2001
From: Kenneth Russel <kbrussel@alum.mit.edu>
Date: Thu, 7 Aug 2003 19:53:38 +0000
Subject: Changed glMapBufferARB's implementation to return the same ByteBuffer
 if the address and capacity of the underlying buffer object haven't changed.
 This saves applications the cost of re-slicing the returned buffer each frame
 and avoids allocation of one or more finalizable objects per frame. Moved
 GlueGen's checking of whether a passed buffer is direct up into Java from C
 to be able to handle buffers that wrap the NULL pointer (needed for the
 "buffer offsets" used by ARB_vertex_buffer_object). Ported the
 VertexArrayRange demo to VertexBufferObject. Currently slower than
 VertexArrayRange but needs to be updated to triangulate the geometry more
 efficiently (currently the triangle strips are only 48 vertices long) and to
 move the indices into fast RAM.

git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@47 232f8b59-042b-4e1e-8c03-345bb8c30851
---
 src/net/java/games/gluegen/CMethodBindingEmitter.java | 14 --------------
 1 file changed, 14 deletions(-)

(limited to 'src/net/java/games/gluegen/CMethodBindingEmitter.java')

diff --git a/src/net/java/games/gluegen/CMethodBindingEmitter.java b/src/net/java/games/gluegen/CMethodBindingEmitter.java
index 763fe6695..27df36cea 100644
--- a/src/net/java/games/gluegen/CMethodBindingEmitter.java
+++ b/src/net/java/games/gluegen/CMethodBindingEmitter.java
@@ -1205,20 +1205,6 @@ public class CMethodBindingEmitter extends FunctionEmitter
     writer.print(incomingArgumentName);
     writer.println(");");
           
-    writer.print("    if (");
-    writer.print(cVariableName);
-    writer.println(" == NULL) {");
-    writer.println("      (*env)->ThrowNew(env, (*env)->FindClass(env, \"java/lang/RuntimeException\"),");
-    writer.print  ("                       \"Argument \\\"");
-    writer.print(incomingArgumentName);
-    writer.println("\\\" was not a direct buffer\");");
-    writer.print  ("      return");
-    if (!binding.getJavaReturnType().isVoid()) {
-      writer.print(" 0");
-    }
-    writer.println(";");
-    writer.println("    }");
-
     if (EMIT_NULL_CHECKS) {
       writer.println("  }");
     }
-- 
cgit v1.2.3