static void make_shadow_bitmap(CombinedBitmapInfo *info, ASS_Renderer *render_priv)
{
if (!(info->filter.flags & FILTER_NONZERO_SHADOW)) {
- if (info->bm_o && !(info->filter.flags & FILTER_BORDER_STYLE_3)) {
+ if (info->bm && info->bm_o && !(info->filter.flags & FILTER_BORDER_STYLE_3)) {
fix_outline(info->bm, info->bm_o);
} else if (info->bm_o && !(info->filter.flags & FILTER_NONZERO_BORDER)) {
ass_free_bitmap(info->bm_o);
}
// Create shadow and fix outline as needed
- if (info->bm_o && !(info->filter.flags & FILTER_BORDER_STYLE_3)) {
+ if (info->bm && info->bm_o && !(info->filter.flags & FILTER_BORDER_STYLE_3)) {
info->bm_s = copy_bitmap(render_priv->engine, info->bm_o);
fix_outline(info->bm, info->bm_o);
} else if (info->bm_o && (info->filter.flags & FILTER_NONZERO_BORDER)) {