Skip to content

Commit

Permalink
Revert "Allow transparent backgrounds in webgl"
Browse files Browse the repository at this point in the history
This reverts commit 2e8e2af.
  • Loading branch information
LabhanshAgrawal committed Apr 15, 2022
1 parent 06eeabd commit 2f757d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/components/term.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,15 @@ export default class Term extends React.PureComponent<TermProps> {
this.termWrapperRef?.appendChild(this.termRef);

if (!props.term) {
const needTransparency = Color(props.backgroundColor).alpha() < 1;
let useWebGL = false;
if (props.webGLRenderer) {
if (!isWebgl2Supported()) {
if (needTransparency) {
console.warn(
'WebGL Renderer has been disabled since it does not support transparent backgrounds yet. ' +
'Falling back to canvas-based rendering.'
);
} else if (!isWebgl2Supported()) {
console.warn('WebGL2 is not supported on your machine. Falling back to canvas-based rendering.');
} else {
// Experimental WebGL renderer needs some more glue-code to make it work on Hyper.
Expand Down

0 comments on commit 2f757d8

Please sign in to comment.