mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Prevent EmptyStackException
This commit is contained in:
@@ -635,8 +635,10 @@ public class Graphics {
|
||||
|
||||
public void endTransform() {
|
||||
batch.end();
|
||||
batch.getTransformMatrix().set(transforms.pop());
|
||||
shapeRenderer.setTransformMatrix(batch.getTransformMatrix());
|
||||
if (!transforms.empty()) { //??? EmptyStackException encountered on mobile
|
||||
batch.getTransformMatrix().set(transforms.pop());
|
||||
shapeRenderer.setTransformMatrix(batch.getTransformMatrix());
|
||||
}
|
||||
batch.begin();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user