Skip to content

Commit 16a3e76

Browse files
authored
Fixed an issue with AndroidNativeImageLoader which was opening stream twice. (#1338)
1 parent b8287a2 commit 16a3e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jme3-android/src/main/java/com/jme3/texture/plugins/AndroidNativeImageLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public Image load(AssetInfo info) throws IOException {
3131
InputStream in = null;
3232
try {
3333
in = info.openStream();
34-
return load(info.openStream(), flip, tmpArray);
34+
return load(in, flip, tmpArray);
3535
} finally {
3636
if (in != null){
3737
in.close();

0 commit comments

Comments
 (0)