File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,15 @@ export default class Term extends React.PureComponent<TermProps> {
131
131
this . termWrapperRef ?. appendChild ( this . termRef ) ;
132
132
133
133
if ( ! props . term ) {
134
+ const needTransparency = Color ( props . backgroundColor ) . alpha ( ) < 1 ;
134
135
let useWebGL = false ;
135
136
if ( props . webGLRenderer ) {
136
- if ( ! isWebgl2Supported ( ) ) {
137
+ if ( needTransparency ) {
138
+ console . warn (
139
+ 'WebGL Renderer has been disabled since it does not support transparent backgrounds yet. ' +
140
+ 'Falling back to canvas-based rendering.'
141
+ ) ;
142
+ } else if ( ! isWebgl2Supported ( ) ) {
137
143
console . warn ( 'WebGL2 is not supported on your machine. Falling back to canvas-based rendering.' ) ;
138
144
} else {
139
145
// Experimental WebGL renderer needs some more glue-code to make it work on Hyper.
You can’t perform that action at this time.
0 commit comments