summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-10-22 00:20:06 -0700
committerHarvey Harrison <[email protected]>2013-10-22 00:20:06 -0700
commitcf0d18c7b82801f41f6fe30f5d09b6a0a9546893 (patch)
treed84238120735d2274d211a452b62de5bf754b1f7 /src
parentc1bb679c5d6d36e91c146d5e075e093bc83a07f1 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java8
1 files changed, 4 insertions, 4 deletions
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(" }");
}
}