mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Merge Image and Canvas GL backend classes into new common Texture class.
This commit is contained in:
@@ -193,7 +193,7 @@ FormatHandler::DecodedImage EXRHandler::decode(Data *data)
|
||||
throw love::Exception("Could not decode EXR image: unknown pixel format.");
|
||||
}
|
||||
|
||||
img.size = img.width * img.height * getPixelFormatSize(img.format);
|
||||
img.size = getPixelFormatSliceSize(img.format, img.width, img.height);
|
||||
|
||||
FreeEXRImage(&exrImage);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user