Fix fg/bg overrides in canvas

This commit is contained in:
Daniel Imms
2022-10-04 14:10:27 -07:00
parent c5d015c908
commit 03e3105c55
5 changed files with 200 additions and 37 deletions
@@ -275,9 +275,6 @@ export class WebglRenderer extends Disposable implements IRenderer {
}
const atlas = acquireTextureAtlas(this._terminal, this._colors, this.dimensions.scaledCellWidth, this.dimensions.scaledCellHeight, this.dimensions.scaledCharWidth, this.dimensions.scaledCharHeight, this._coreBrowserService.dpr);
if (!('getRasterizedGlyph' in atlas)) {
throw new Error('The webgl renderer only works with the webgl char atlas');
}
if (this._charAtlas !== atlas) {
this.onChangeTextureAtlas.fire(atlas.cacheCanvas);
}