diff options
author | Harvey Harrison <[email protected]> | 2013-10-23 10:25:17 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2013-10-23 10:28:53 -0700 |
commit | 0e79445985e23f0ff8c600137052cc446af421be (patch) | |
tree | 5e1d17321345d236c4fa98929c0e7c824fdc6179 /src | |
parent | fa865a86033f64309b777dec7f557376f7f0eb46 (diff) |
jogl: add final to Debug wrapper error code and fix indentation
Make the indentation consistent in each function wrapper.
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java | 10 |
1 files changed, 6 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 a51151b82..59ec9d35a 100644 --- a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java +++ b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java @@ -464,7 +464,6 @@ public class BuildComposablePipeline { protected void emitBody(PrintWriter output, Method m, boolean runHooks) { output.println(" {"); - output.print(" "); Class<?> retType = m.getReturnType(); boolean callPreDownstreamHook = runHooks && hasPreDownstreamCallHook(m); @@ -510,6 +509,9 @@ public class BuildComposablePipeline { output.print(" return "); } } + else { + output.print(" "); + } output.print(getDownstreamObjectName()); output.print('.'); output.print(m.getName()); @@ -1023,7 +1025,7 @@ public class BuildComposablePipeline { output.println(" insideBeginEndPair = false;"); } - output.println(" int err = checkGLError();"); + output.println(" final int err = checkGLError();"); output.println(" if (err != GL_NO_ERROR) {"); StringBuilder fmtsb = new StringBuilder(); @@ -1172,10 +1174,10 @@ public class BuildComposablePipeline { @Override protected void preDownstreamCallHook(PrintWriter output, Method m) { if (m.getName().equals("glEnd") || m.getName().equals("glEndList")) { - output.println("indent-=2;"); + output.println(" indent-=2;"); output.println(" printIndent();"); } else { - output.println("printIndent();"); + output.println(" printIndent();"); } output.print(" print("); |