Merge pull request #73 from RazielXYZ/master

Break out of astc image_compress error too for consistency
This commit is contained in:
Бранимир Караџић
2022-10-21 12:39:17 -07:00
committed by GitHub

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;