Revert "Revert "Fix image file close issue""
This reverts commit 6dd7ba25c8
.
This commit is contained in:
parent
6dd7ba25c8
commit
2b6d95b3b3
|
@ -55,6 +55,8 @@ ImageProperties GetImageProperties(char const* filePath) {
|
||||||
if (success && channels == 4 && imageHasTransparentPixels(f)) {
|
if (success && channels == 4 && imageHasTransparentPixels(f)) {
|
||||||
result.occlusion = IMAGE_TRANSPARENT;
|
result.occlusion = IMAGE_TRANSPARENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fclose(f);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue