Merge pull request #4181 from Tyriar/clear_race

Fix race condition that could when clearing atlas on 2+ terminals
This commit is contained in:
Daniel Imms
2022-10-07 16:34:27 -07:00
committed by GitHub
2 changed files with 1 additions and 1 deletions
@@ -298,7 +298,6 @@ export class WebglRenderer extends Disposable implements IRenderer {
public clearTextureAtlas(): void { public clearTextureAtlas(): void {
this._charAtlas?.clearTexture(); this._charAtlas?.clearTexture();
this._clearModel(true); this._clearModel(true);
this._updateModel(0, this._terminal.rows - 1);
this._requestRedrawViewport(); this._requestRedrawViewport();
} }
@@ -153,6 +153,7 @@ export class TextureAtlas implements ITextureAtlas {
this._currentRow.height = 0; this._currentRow.height = 0;
this._fixedRows.length = 0; this._fixedRows.length = 0;
this._didWarmUp = false; this._didWarmUp = false;
this.hasCanvasChanged = true;
} }
public getRasterizedGlyphCombinedChar(chars: string, bg: number, fg: number, ext: number): IRasterizedGlyph { public getRasterizedGlyphCombinedChar(chars: string, bg: number, fg: number, ext: number): IRasterizedGlyph {