This commit is contained in:
Daniel Imms
2022-10-29 18:09:18 -07:00
parent 04f79aa7b4
commit bfa9dd5060
2 changed files with 3 additions and 6 deletions
@@ -355,12 +355,9 @@ export class GlyphRenderer extends Disposable {
}
public setAtlas(atlas: ITextureAtlas): void {
const gl = this._gl;
this._atlas = atlas;
// TODO: Share code
for (let i = 0; i < this._atlas.pages.length; i++) {
this._bindAtlasPageTexture(gl, atlas, i);
for (let i = 0; i < atlas.pages.length; i++) {
this._bindAtlasPageTexture(this._gl, atlas, i);
}
}