From f4883b308971df94575056fcf3c79244a28aa1f4 Mon Sep 17 00:00:00 2001 From: mippe Date: Tue, 29 Apr 2025 16:19:00 +0300 Subject: [PATCH] fix deprecation --- .../indooratlas/android/sdk/examples/ar/rendering/Texture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Basic/src/arCore/java/com/indooratlas/android/sdk/examples/ar/rendering/Texture.java b/Basic/src/arCore/java/com/indooratlas/android/sdk/examples/ar/rendering/Texture.java index 49122fe..10c4da9 100644 --- a/Basic/src/arCore/java/com/indooratlas/android/sdk/examples/ar/rendering/Texture.java +++ b/Basic/src/arCore/java/com/indooratlas/android/sdk/examples/ar/rendering/Texture.java @@ -64,7 +64,7 @@ public void createOnGlThread() { */ public void updateWithDepthImageOnGlThread(final Frame frame) { try { - Image depthImage = frame.acquireDepthImage(); + Image depthImage = frame.acquireDepthImage16Bits(); width = depthImage.getWidth(); height = depthImage.getHeight(); glBindTexture(GL_TEXTURE_2D, textureId);