update endtransform

This commit is contained in:
Anthony Calosa
2020-04-18 17:43:13 +08:00
parent b1e9f4a110
commit 06b9143d57

View File

@@ -640,8 +640,8 @@ public class Graphics {
public void endTransform() {
batch.end();
batch.getTransformMatrix().set(transforms.get(0)); //get the backup at index 0
shapeRenderer.setTransformMatrix(transforms.get(0));
transforms.pop();
shapeRenderer.setTransformMatrix(batch.getTransformMatrix());
batch.begin();
}