diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2018-09-07 11:39:35 +0200 |
---|---|---|
committer | Łukasz Paczos <lukasz.paczos@mapbox.com> | 2018-09-26 13:46:13 +0200 |
commit | f1a094700719f4ab6edb789c977f4b522d1ddc95 (patch) | |
tree | 7fe451b6151a7fa201836bcaff491ed5e12c286e /platform | |
parent | 8cc9e72812fb0e55776ae7a5b984e7e881092ea6 (diff) | |
download | qtlocation-mapboxgl-f1a094700719f4ab6edb789c977f4b522d1ddc95.tar.gz |
[android] preserve GLSurfaceView's EGL context on pause
Diffstat (limited to 'platform')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/renderer/glsurfaceview/GLSurfaceViewMapRenderer.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/renderer/glsurfaceview/GLSurfaceViewMapRenderer.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/renderer/glsurfaceview/GLSurfaceViewMapRenderer.java index d27fadf5ca..ed0bed0ac0 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/renderer/glsurfaceview/GLSurfaceViewMapRenderer.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/renderer/glsurfaceview/GLSurfaceViewMapRenderer.java @@ -30,6 +30,7 @@ public class GLSurfaceViewMapRenderer extends MapRenderer implements GLSurfaceVi glSurfaceView.setEGLConfigChooser(new EGLConfigChooser()); glSurfaceView.setRenderer(this); glSurfaceView.setRenderMode(RENDERMODE_WHEN_DIRTY); + glSurfaceView.setPreserveEGLContextOnPause(true); } @Override |