From beec498457cb271c74207540febcd82cf6aab298 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Thu, 21 Dec 2023 14:22:56 +0000 Subject: [PATCH] fix: expose `html.angle-backend` config field --- src/modules/html/html.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/html/html.cpp b/src/modules/html/html.cpp index 33e11386a3..c6fbd4cb02 100644 --- a/src/modules/html/html.cpp +++ b/src/modules/html/html.cpp @@ -163,8 +163,11 @@ class renderer_application if (enable_gpu_) { command_line->AppendSwitch("enable-webgl"); - // This gives better performance on the gpu->cpu readback - command_line->AppendSwitchWithValue("use-angle", "gl"); + // This gives better performance on the gpu->cpu readback, but can perform worse with intense templates + auto backend = env::properties().get(L"configuration.html.angle-backend", L"gl"); + if (backend.size() > 0) { + command_line->AppendSwitchWithValue("use-angle", backend); + } } command_line->AppendSwitch("disable-web-security");