Skip to content

Commit 2b38b65

Browse files
committed
webgl: Ignore alpha channel when allowTransparency is false
Fixes #5255 Part of microsoft/vscode#204663
1 parent 21387ec commit 2b38b65

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

addons/addon-webgl/src/TextureAtlas.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,11 @@ export class TextureAtlas implements ITextureAtlas {
306306
break;
307307
}
308308

309+
// Ignore alpha channel when allowTransparency is false
310+
if (!this._config.allowTransparency) {
311+
result = color.opaque(result);
312+
}
313+
309314
return result;
310315
}
311316

0 commit comments

Comments
 (0)