mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
disable webgl in default config
This commit is contained in:
parent
7f10453e91
commit
8bf1874706
2 changed files with 3 additions and 3 deletions
|
|
@ -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 :/
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue