The indent is reduced when glEnd/glEndList is hit, but never incremented. https://github.com/AusencoSimulation/jogl.git commit: b77bd2e9de054124ef81413aa338c635dbdc5a54 has a proposed fix to the code generator. jogl: indent trace statements in the Trace pipelines when we hit glBegin The indent was being reduced on glEnd/glEndList but was never being incremented. The intent appeared to be to indent all statements between glBEgin/glEnd pairs to show the nested context of those calls. Add the increment after printing the glBegin trace statement.