From cf0d18c7b82801f41f6fe30f5d09b6a0a9546893 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Tue, 22 Oct 2013 00:20:06 -0700 Subject: jogl: do not generate an extra String for the Debug pipeline wrappers Build the caller string directly and don't wrap it in an extra constructor. Update the indentation level for the newly added if-block from the previous commit. Signed-off-by: Harvey Harrison --- .../com/jogamp/gluegen/opengl/BuildComposablePipeline.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java index d7196f77e..1d34ccfd7 100644 --- a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java +++ b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java @@ -1022,10 +1022,10 @@ public class BuildComposablePipeline { output.println(" int err = checkGLError();"); output.println(" if (err != GL_NO_ERROR) {"); - output.println(" String txt = new String(\"" + m.getName() + "(\" +"); + output.println(" String txt = \"" + m.getName() + "(\" +"); Class[] params = m.getParameterTypes(); for (int i = 0; params != null && i < params.length; i++) { - output.print(" \"<" + params[i].getName() + ">"); + output.print(" \"<" + params[i].getName() + ">"); if (params[i].isArray()) { output.print("\" +"); } else if (params[i].equals(int.class)) { @@ -1037,9 +1037,9 @@ public class BuildComposablePipeline { output.println(" \", \" +"); } } - output.println(" \")\");"); + output.println(" \")\";"); // calls to glGetError() are only allowed outside of glBegin/glEnd pairs - output.println(" writeGLError( err, txt );"); + output.println(" writeGLError( err, txt );"); output.println(" }"); } } -- cgit v1.2.3