mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-06-08 10:53:46 +00:00
Added more parsing errors.
This commit is contained in:
@@ -2413,7 +2413,6 @@ namespace bimg
|
||||
if (identifier[1] != '1'
|
||||
&& identifier[2] != '1')
|
||||
{
|
||||
BX_ERROR_SET(_err, BIMG_ERROR, "Unknown KTX identifier.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -264,6 +264,10 @@ namespace bimg
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
BX_ERROR_SET(_err, BIMG_ERROR, "PNG: Unsupported format.");
|
||||
}
|
||||
}
|
||||
|
||||
lodepng_state_cleanup(&state);
|
||||
@@ -420,12 +424,24 @@ namespace bimg
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
BX_ERROR_SET(_err, BIMG_ERROR, "EXR: Couldn't find R channel.");
|
||||
}
|
||||
|
||||
FreeEXRImage(&exrImage);
|
||||
}
|
||||
else
|
||||
{
|
||||
BX_ERROR_SET(_err, BIMG_ERROR, "EXR: Failed to parse image.");
|
||||
}
|
||||
|
||||
FreeEXRHeader(&exrHeader);
|
||||
}
|
||||
else
|
||||
{
|
||||
BX_ERROR_SET(_err, BIMG_ERROR, "EXR: Failed to parse header.");
|
||||
}
|
||||
|
||||
ImageContainer* output = NULL;
|
||||
if (NULL != data)
|
||||
|
||||
Reference in New Issue
Block a user