Skip to content

Commit

Permalink
Don't resize until create has been called as there may be no OpenGL c…
Browse files Browse the repository at this point in the history
…ontext, and it breaks the lifecycle.

Fixes #3864
  • Loading branch information
Tom-Ski committed Mar 10, 2016
1 parent 8435bda commit a7e7f5c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ public void viewDidLayoutSubviews () {
graphics.width = (int)bounds.getWidth();
graphics.height = (int)bounds.getHeight();
graphics.makeCurrent();
app.listener.resize(graphics.width, graphics.height);
if (graphics.created) {
app.listener.resize(graphics.width, graphics.height);
}
}

@Callback
Expand Down

0 comments on commit a7e7f5c

Please sign in to comment.