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