Skip to content

Commit

Permalink
ebiten: add a warning about StrictContextRestoration
Browse files Browse the repository at this point in the history
Updates #3089
  • Loading branch information
hajimehoshi committed Sep 9, 2024
1 parent e058bb6 commit df821f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ type RunGameOptions struct {
// StrictContextRestration indicates whether the context lost should be restored strictly by Ebitengine or not.
//
// StrictContextRestration is available only on Android. Otherwise, StrictContextRestration is ignored.
// Thus, StrictContextRestration should be used with mobile.SetGameWithOptions, rather than RunGameWithOptions.
//
// In Android, Ebitengien uses `GLSurfaceView`'s `setPreserveEGLContextOnPause(true)`.
// This works in most cases, but it is still possible that the context is lost in some minor cases.
Expand Down

0 comments on commit df821f0

Please sign in to comment.