gfx: relax DrawTargetCairo::IsValid() check, fixes crash when loading spectrumsurveys.com

This commit is contained in:
roytam1 2025-07-09 00:09:31 +08:00
commit 10b96192dd

View file

@ -623,7 +623,7 @@ bool
DrawTargetCairo::IsValid() const
{
return mSurface && !cairo_surface_status(mSurface) &&
mContext && !cairo_surface_status(cairo_get_group_target(mContext));
mContext /*&& !cairo_surface_status(cairo_get_group_target(mContext))*/;
}
DrawTargetType