summaryrefslogtreecommitdiffhomepage
path: root/android/lib/map/src
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2024-02-23 15:36:06 +0100
committerLinus Färnstrand <linus@mullvad.net>2024-02-27 10:44:24 +0100
commit2f82e10c45777e958b30cb387380ca0b68007894 (patch)
treede024dbfa9343980eb403528ed0e382d594a97a2 /android/lib/map/src
parent641fa8f5391ca4db5ed75e6fa55cdef4eeb1aabf (diff)
downloadmullvadvpn-2f82e10c45777e958b30cb387380ca0b68007894.tar.xz
mullvadvpn-2f82e10c45777e958b30cb387380ca0b68007894.zip
Update Android UI to render new map data
Diffstat (limited to 'android/lib/map/src')
-rw-r--r--android/lib/map/src/main/kotlin/net/mullvad/mullvadvpn/lib/map/internal/shapes/Globe.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/lib/map/src/main/kotlin/net/mullvad/mullvadvpn/lib/map/internal/shapes/Globe.kt b/android/lib/map/src/main/kotlin/net/mullvad/mullvadvpn/lib/map/internal/shapes/Globe.kt
index 379ac407cc..7e862ef59e 100644
--- a/android/lib/map/src/main/kotlin/net/mullvad/mullvadvpn/lib/map/internal/shapes/Globe.kt
+++ b/android/lib/map/src/main/kotlin/net/mullvad/mullvadvpn/lib/map/internal/shapes/Globe.kt
@@ -84,7 +84,7 @@ internal class Globe(resources: Resources) {
landVertexBuffer,
landContour,
colors.contourColorArray,
- GLES20.GL_LINES
+ GLES20.GL_LINE_STRIP
)
// Scale the globe to avoid z-fighting
@@ -153,7 +153,7 @@ internal class Globe(resources: Resources) {
)
companion object {
- private const val LAND_OCEAN_SCALE_FACTOR = 0.9999f
+ private const val LAND_OCEAN_SCALE_FACTOR = 0.99999f
// Vertex, and fragment shader code is taken from Mullvad Desktop 3dmap.ts
private val vertexShaderCode =