mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
WEBPHandler: Update error message when image alloc fails.
This commit is contained in:
@@ -63,7 +63,7 @@ WEBPHandler::DecodedImage WEBPHandler::decode(Data *data)
|
||||
|
||||
unsigned char *buf = new (std::nothrow) unsigned char[imagesize];
|
||||
if (!buf)
|
||||
throw love::Exception("Could not decode WebP image (%s)", simplewebp_get_error_text(SIMPLEWEBP_ALLOC_ERROR));
|
||||
throw love::Exception("Could not decode WebP image (not enough memory)");
|
||||
|
||||
err = simplewebp_decode(swebp, buf, nullptr);
|
||||
simplewebp_unload(swebp);
|
||||
|
||||
Reference in New Issue
Block a user