Skip to content

Commit

Permalink
potentially fix rare crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Sesu8642 committed Mar 4, 2024
1 parent 3280092 commit bcfa204
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ void activateStage(IngameStages ingameStage) {
throw new IllegalStateException("Unknown stage " + ingameStage);
}
// the super class only applies the resizing to the active stage
resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
Gdx.app.postRunnable(() -> resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()));
}

@Override
Expand Down

0 comments on commit bcfa204

Please sign in to comment.