Skip to content

Commit ac7228e

Browse files
authored
Merge branch 'main' into dynamic-texture-atlas
2 parents 9d51e87 + 2af1bb7 commit ac7228e

File tree

4 files changed

+22
-11
lines changed

4 files changed

+22
-11
lines changed

.bazelignore

+8
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@ bazel-bin
22
bazel-out
33
bazel-testlogs
44
node_modules
5+
.git
6+
.cache
7+
.idea
8+
.vscode
9+
build
10+
/build-*
11+
node_modules
12+
.cxx

.gitignore

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
/mapbox-gl-native-android/MapLibreAndroid/mapbox-gl-native
2-
/mapbox-gl-native-android/MapLibreAndroidTestApp/mapbox-gl-native
31
/platform/android/MapLibreAndroidTestApp/src/main/res/values/developer-config.xml
42

53
/platform/android/gradle/configuration.gradle
64
/platform/android/arm64-v8a
75
/platform/android/armeabi-v7a
8-
/platform/android/MapLibreAndroid/.cxx
96
/platform/android/MapLibreAndroid/build
107
/platform/android/MapLibrePlugin/build
11-
/platform/android/MapLibreAndroidTestApp/.cxx
128
/platform/android/MapLibreAndroidTestApp/build
139
/platform/android/buildSrc/build
1410
/platform/android/x86
1511
/platform/android/x86_64
1612
/cmake-build-debug
1713
/platform/android/build
1814
/platform/android/MapLibreAndroid/src/main/assets/sdk_versions/com.mapbox.mapboxsdk
19-
/platform/ios/platform/ios/Mapbox.playground/build/
2015
/platform/windows/vendor/mesa3d/
2116
*.code-workspace
2217

@@ -35,14 +30,11 @@ compile_commands.json
3530
/platform/android/signing-key.text
3631
/platform/android/.java-version
3732
*.hprof
38-
/platform/ios/platform/ios/benchmark/assets/tiles/tiles
39-
/platform/ios/platform/ios/benchmark/assets/glyphs/Roboto Regular,Noto Sans Regular
40-
/platform/ios/platform/ios/benchmark/assets/glyphs/Roboto Medium,Noto Sans Regular
41-
/platform/ios/platform/ios/benchmark/assets/glyphs/Roboto Condensed Italic,Noto Sans Italic
42-
/platform/ios/platform/ios/benchmark/assets/glyphs/Noto Sans Regular
4333
/platform/android/key.json
4434
/platform/android/site
4535
node_modules
36+
.cxx
37+
4638
# Node binaries.
4739
/lib
4840

@@ -59,5 +51,4 @@ __generated__
5951
cache.sqlite
6052
cache.sqlite-journal
6153
out.png
62-
/test/android/app/.cxx
6354
/test/android/app/build

platform/android/MapLibreAndroid/src/vulkan/java/org/maplibre/android/maps/renderer/textureview/VulkanTextureViewRenderThread.java

+11
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ public VulkanTextureViewRenderThread(@NonNull TextureView textureView, @NonNull
1515
super(textureView, mapRenderer);
1616
}
1717

18+
void cleanup() {
19+
if (surface == null) {
20+
return;
21+
}
22+
23+
mapRenderer.onSurfaceDestroyed();
24+
surface.release();
25+
surface = null;
26+
}
27+
1828
// Thread implementation
1929

2030
@Override
@@ -121,6 +131,7 @@ public void run() {
121131

122132
// Signal we're done
123133
synchronized (lock) {
134+
cleanup();
124135
this.exited = true;
125136
lock.notifyAll();
126137
}

platform/node/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/lib

0 commit comments

Comments
 (0)