mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-20 01:14:20 +00:00
Added a workaround for Android GL glitches when pausing the app
This commit is contained in:
parent
676b27ef68
commit
6fc08dd1cd
7 changed files with 74 additions and 60 deletions
|
|
@ -220,6 +220,13 @@ public class JuceAppActivity extends Activity
|
|||
protected void onPause()
|
||||
{
|
||||
suspendApp();
|
||||
|
||||
try
|
||||
{
|
||||
Thread.sleep (1000); // This is a bit of a hack to avoid some hard-to-track-down
|
||||
// openGL glitches when pausing/resuming apps..
|
||||
} catch (InterruptedException e) {}
|
||||
|
||||
super.onPause();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue