ImageData:encode now supports saving exr image files.

Also add support for loading uint exr image files, and fix a memory leak in the exr loading code.

Resolves #1813.
This commit is contained in:
slime
2022-09-10 23:17:42 -03:00
parent 9be43d671c
commit 9c46b75138
9 changed files with 236 additions and 27 deletions
+6
View File
@@ -264,6 +264,12 @@ void PNGHandler::freeRawPixels(unsigned char *mem)
::free(mem);
}
void PNGHandler::freeEncodedImage(unsigned char *mem)
{
if (mem)
::free(mem);
}
} // magpie
} // image
} // love