Fixed an issue with AndroidNativeImageLoader which was opening stream twice. (#1338)

v3.3
Ali-RS 5 years ago committed by Stephen Gold
parent 969e2808e4
commit 0bdb0159be
  1. 2
      jme3-android/src/main/java/com/jme3/texture/plugins/AndroidNativeImageLoader.java

@ -30,7 +30,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();

Loading…
Cancel
Save