Skip to content

Commit

Permalink
fix: expose html.angle-backend config field
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Dec 21, 2023
1 parent 6b998ab commit beec498
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modules/html/html.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit beec498

Please sign in to comment.