mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
Fix encoding ImageData to 16 bit per color channel PNG.
--HG-- branch : minor
This commit is contained in:
@@ -156,6 +156,7 @@ love::filesystem::FileData *ImageData::encode(EncodedFormat encodedFormat, const
|
|||||||
rawimage.height = height;
|
rawimage.height = height;
|
||||||
rawimage.size = getSize();
|
rawimage.size = getSize();
|
||||||
rawimage.data = data;
|
rawimage.data = data;
|
||||||
|
rawimage.format = format;
|
||||||
|
|
||||||
for (FormatHandler *handler : formatHandlers)
|
for (FormatHandler *handler : formatHandlers)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user