Skip to content

Commit

Permalink
Merge pull request #4181 from Tyriar/clear_race
Browse files Browse the repository at this point in the history
Fix race condition that could when clearing atlas on 2+ terminals
  • Loading branch information
Tyriar committed Oct 7, 2022
2 parents 9a4d5db + c4eef2f commit d948b31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion addons/xterm-addon-webgl/src/WebglRenderer.ts
Expand Up @@ -298,7 +298,6 @@ export class WebglRenderer extends Disposable implements IRenderer {
public clearTextureAtlas(): void {
this._charAtlas?.clearTexture();
this._clearModel(true);
this._updateModel(0, this._terminal.rows - 1);
this._requestRedrawViewport();
}

Expand Down
1 change: 1 addition & 0 deletions src/browser/renderer/shared/TextureAtlas.ts
Expand Up @@ -153,6 +153,7 @@ export class TextureAtlas implements ITextureAtlas {
this._currentRow.height = 0;
this._fixedRows.length = 0;
this._didWarmUp = false;
this.hasCanvasChanged = true;
}

public getRasterizedGlyphCombinedChar(chars: string, bg: number, fg: number, ext: number): IRasterizedGlyph {
Expand Down

0 comments on commit d948b31

Please sign in to comment.