summaryrefslogtreecommitdiff
path: root/platform/android/src/map_renderer.hpp
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-09-18 13:40:26 +0300
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2017-09-22 23:33:56 +0300
commit18bb6da10968872e585b6e0b787f45cb3a806b76 (patch)
tree7c55f14d89f8568f10eff93ae7239dca94fefa76 /platform/android/src/map_renderer.hpp
parent8b9794b1a7276d8ea2957d5aed7169fc0b40e25d (diff)
downloadqtlocation-mapboxgl-18bb6da10968872e585b6e0b787f45cb3a806b76.tar.gz
[android] reset renderer on the GL thread when map is destroyed
- ensures cleanup of resources on the right thread
Diffstat (limited to 'platform/android/src/map_renderer.hpp')
-rw-r--r--platform/android/src/map_renderer.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/android/src/map_renderer.hpp b/platform/android/src/map_renderer.hpp
index 2039444457..0d614912a9 100644
--- a/platform/android/src/map_renderer.hpp
+++ b/platform/android/src/map_renderer.hpp
@@ -87,6 +87,9 @@ protected:
private:
// Called from the GL Thread //
+ // Resets the renderer
+ void resetRenderer();
+
// Renders a frame.
void render(JNIEnv&);