mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Disable antialiasing and depth buffer for WebGL2 contexts
This commit is contained in:
@@ -82,7 +82,8 @@ export class WebglRenderer extends EventEmitter implements IRenderer {
|
||||
this._renderDebouncer = new RenderDebouncer(this._terminal, this._renderRows.bind(this));
|
||||
|
||||
this._canvas = document.createElement('canvas');
|
||||
this._gl = this._canvas.getContext('webgl2') as IWebGL2RenderingContext;
|
||||
const contextAttributes = { antialias: false, depth: false };
|
||||
this._gl = this._canvas.getContext('webgl2', contextAttributes) as IWebGL2RenderingContext;
|
||||
if (!this._gl) {
|
||||
throw new Error('WebGL2 not supported');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user