mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user