Skip to content

Commit 53fb1ba

Browse files
committed
Don't throw when rendering before atlas is set
This fixes a problem when loading the webgl addon before the terminal is attached. See microsoft/vscode#85048
1 parent c0da451 commit 53fb1ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/xterm-addon-webgl/src/GlyphRenderer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class GlyphRenderer {
184184

185185
let rasterizedGlyph: IRasterizedGlyph;
186186
if (!this._atlas) {
187-
throw new Error('atlas must be set before updating cell');
187+
return;
188188
}
189189
if (chars && chars.length > 1) {
190190
rasterizedGlyph = this._atlas.getRasterizedGlyphCombinedChar(chars, bg, fg);

0 commit comments

Comments
 (0)