Break out of astc image_compress error too for consistency

This commit is contained in:
Raziel Alphadios
2022-10-21 22:36:46 +03:00
parent 08ade536c8
commit 2e26b42318

View File

@@ -204,9 +204,11 @@ namespace bimg
if (status != ASTCENC_SUCCESS) {
BX_TRACE("astc error in compress image %s", astcenc_get_error_string(status));
BX_ERROR_SET(_err, BIMG_ERROR, "Unable to compress astc image!");
astcenc_context_free(context);
break;
}
astcenc_context_free(context);
}
break;