fixed:arm架构桌面系统终端开启webgl渲染有问题.

This commit is contained in:
chriswang521 2024-06-06 17:12:46 +08:00 committed by wangpenglong
parent 9d4e4612c1
commit 05b92031d6
1 changed files with 3 additions and 1 deletions

View File

@ -705,7 +705,9 @@ export class XtermTerminal extends Disposable implements IXtermTerminal, IDetach
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;
}