fixed FT-2000-4 kylinos-2203终端开启webgl渲染有问题.

This commit is contained in:
wangpenglong 2023-10-31 11:21:51 +08:00 committed by chriswang521
parent 16e5c83bf4
commit 6fb0f62d4d
1 changed files with 3 additions and 1 deletions

View File

@ -461,7 +461,9 @@ export class XtermTerminal extends DisposableStore implements IXtermTerminal {
const debugInfo = checkGl?.getExtension('WEBGL_debug_renderer_info');
if (checkGl && debugInfo) {
const renderer = checkGl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL);
if (renderer.startsWith('ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero)')) {
this._logService.debug(`Webgl Webgl renderer=${renderer}`);
if (renderer.startsWith('ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero)') /*x64*/
|| renderer.startsWith('ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (LLVM 10.0.0)') /*FT-2000-4,arm64*/) {
this._disableWebglForThisSession();
return;
}