From 16a3e7630c32cf95bca1218f5c85133cf58398b1 Mon Sep 17 00:00:00 2001 From: Ali-RS Date: Wed, 8 Apr 2020 13:14:04 +0430 Subject: [PATCH] Fixed an issue with AndroidNativeImageLoader which was opening stream twice. (#1338) --- .../java/com/jme3/texture/plugins/AndroidNativeImageLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-android/src/main/java/com/jme3/texture/plugins/AndroidNativeImageLoader.java b/jme3-android/src/main/java/com/jme3/texture/plugins/AndroidNativeImageLoader.java index af08dc4da..fca32d2c8 100644 --- a/jme3-android/src/main/java/com/jme3/texture/plugins/AndroidNativeImageLoader.java +++ b/jme3-android/src/main/java/com/jme3/texture/plugins/AndroidNativeImageLoader.java @@ -31,7 +31,7 @@ public class AndroidNativeImageLoader implements AssetLoader { InputStream in = null; try { in = info.openStream(); - return load(info.openStream(), flip, tmpArray); + return load(in, flip, tmpArray); } finally { if (in != null){ in.close();