From 10b96192dd99bd7daef5072d51d7f739e01d2fbc Mon Sep 17 00:00:00 2001 From: roytam1 Date: Wed, 9 Jul 2025 00:09:31 +0800 Subject: [PATCH] gfx: relax DrawTargetCairo::IsValid() check, fixes crash when loading spectrumsurveys.com --- gfx/2d/DrawTargetCairo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/2d/DrawTargetCairo.cpp b/gfx/2d/DrawTargetCairo.cpp index ad22a9a456..7e26debd6f 100644 --- a/gfx/2d/DrawTargetCairo.cpp +++ b/gfx/2d/DrawTargetCairo.cpp @@ -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