]> git.proxmox.com Git - pve-xtermjs.git/commit
xtermjs: try to detect hardware support for webgl2
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 25 Oct 2023 09:08:59 +0000 (11:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 25 Oct 2023 16:54:12 +0000 (18:54 +0200)
commitaa9a479c51658fe7c89d34fa0ba2836c05db3465
tree27841abb34ae961cd99072beb8f10622fe657fd2
parenta69ef0b68ec865a524a39192b8e3f10221858192
xtermjs: try to detect hardware support for webgl2

With the new WebGL renderer, chrome/chromium has buggy software
support for emulating this (see [0]), so we have to detect that
manually and prevent loading the add-on. This fixes the issue that on
chrome without HW-support, it would not always render every character.

Firefox does not have support for a software renderer and the
loading/detection throws an exception, falling back to the default
renderer.

0: https://github.com/xtermjs/xterm.js/issues/4574

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
xterm.js/src/main.js