Merge branch 'gtk-3-24-fix-runtime-assertions' into 'gtk-3-24'

Prevent Quartz/CoreGraphics runtime assertion failures. (GTK 3)

See merge request GNOME/gtk!1442
This commit is contained in:
Ignacio Casal Quinteiro 2020-02-17 15:49:42 +00:00
commit 63b061684d

View File

@ -191,8 +191,11 @@ static void
gdk_window_impl_quartz_release_context (GdkWindowImplQuartz *window_impl,
CGContextRef cg_context)
{
CGContextRestoreGState (cg_context);
CGContextSetAllowsAntialiasing (cg_context, TRUE);
if (cg_context)
{
CGContextRestoreGState (cg_context);
CGContextSetAllowsAntialiasing (cg_context, TRUE);
}
/* See comment in gdk_quartz_window_get_context(). */
if (window_impl->in_paint_rect_count == 0)