libgdx/libgdx — pull request #100 by acoppes (2012-10-30 21:40:47+00:00)
Title: Fixed scene2d Group to avoid calling begin/end when not needed

Group was calling batch.begin() and batch.end() when applying a transform or reseting a transform. That wasn't needed since batch.setTransform() already calls flush() and renders everything that was waiting to be rendered.

Also, we get an improvement since a lot of bind/unbind of the current shader of the batch and changes of the opengl state is avoided.

Already tested, but please give it a second review if you can.

Thanks.