Skip to content

Commit 7a43412

Browse files
pengdevgithub-actions[bot]
authored andcommitted
add warning log when VulkanManager is null
GitOrigin-RevId: 355a062a19477e210796bb47e65240face003121
1 parent 7d4da0d commit 7a43412

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

maps-sdk/src/main/java/com/mapbox/maps/renderer/VulkanMapboxRenderThread.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ internal class VulkanMapboxRenderThread(mapboxRenderer: MapboxRenderer, mapName:
3636
// TODO: How to handle vulkan not supported in the device?
3737
if (nativeVulkanManager == null) {
3838
nativeVulkanManager = mapboxRenderer.map?.getVulkanManager()
39+
if (nativeVulkanManager == null) {
40+
logW(TAG, "Failed to obtain VulkanManager - Vulkan rendering will not be available")
41+
}
3942
}
40-
val result = nativeVulkanManager != null
41-
return result
43+
return nativeVulkanManager != null
4244
}
4345

4446
override fun attachSurfaceToRenderer(surface: Surface): Boolean {

0 commit comments

Comments
 (0)