disable webgl in default config

This commit is contained in:
Labhansh Agrawal 2020-01-18 12:01:55 +05:30 committed by Benjamin Staneck
parent 7f10453e91
commit 8bf1874706
2 changed files with 3 additions and 3 deletions

View file

@ -152,7 +152,7 @@ module.exports = {
// Whether to use the WebGL renderer. Set it to false to use canvas-based
// rendering (slower, but supports transparent backgrounds)
webGLRenderer: true,
webGLRenderer: false,
// keypress required for weblink activation: [ctrl|alt|meta|shift]
// todo: does not pick up config changes automatically, need to restart terminal :/

View file

@ -132,7 +132,7 @@ export default class Term extends React.PureComponent<TermProps> {
if (!props.term) {
const needTransparency = Color(props.backgroundColor).alpha() < 1;
const useWebGL = false;
let useWebGL = false;
if (props.webGLRenderer) {
if (needTransparency) {
console.warn(
@ -144,7 +144,7 @@ export default class Term extends React.PureComponent<TermProps> {
} else {
// Experimental WebGL renderer needs some more glue-code to make it work on Hyper.
// If you're working on enabling back WebGL, you will also need to look into `xterm-addon-ligatures` support for that renderer.
// useWebGL = true;
useWebGL = true;
}
}
Term.reportRenderer(props.uid, useWebGL ? 'WebGL' : 'Canvas');