Fix high-depth handling

We mark this flag as always available, but we
were only checking it in debug builds.
This commit is contained in:
Matthias Clasen 2022-09-21 20:47:26 -04:00
parent 183709c522
commit 7785c18c56

View File

@ -364,7 +364,7 @@ gdk_draw_context_begin_frame_full (GdkDrawContext *context,
return;
}
if (GDK_DISPLAY_DEBUG_CHECK (priv->display, HIGH_DEPTH))
if (gdk_display_get_debug_flags (priv->display) & GDK_DEBUG_HIGH_DEPTH)
prefers_high_depth = TRUE;
priv->frame_region = cairo_region_copy (region);