From 5c8f3b7fec330897d66bf72559aa2ac26862ae99 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 16 Jul 2023 09:39:18 -0600 Subject: [PATCH] [gsubgpos] Conditionally cache backtrack again --- src/hb-ot-layout-gsubgpos.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index f3b83c6a9..8e3571b12 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -3639,7 +3639,7 @@ struct ChainContextFormat2_5 /* match_class_caches1 is slightly faster. Use it for lookahead, * which is typically longer. */ struct ChainContextApplyLookupContext lookup_context = { - {{match_class, + {{cached && &backtrack_class_def == &lookahead_class_def ? match_class_cached1 : match_class, cached ? match_class_cached2 : match_class, cached ? match_class_cached1 : match_class}}, {&backtrack_class_def,