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

master
Ali-RS 5 years ago committed by GitHub
parent b8287a2d0d
commit 16a3e7630c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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();

Loading…
Cancel
Save