webgl: Ignore alpha channel when allowTransparency is false

Fixes #5255
Part of microsoft/vscode#204663
This commit is contained in:
Daniel Imms
2025-05-07 08:05:22 -07:00
parent 21387ecdae
commit 2b38b65392
+5
View File
@@ -306,6 +306,11 @@ export class TextureAtlas implements ITextureAtlas {
break;
}
// Ignore alpha channel when allowTransparency is false
if (!this._config.allowTransparency) {
result = color.opaque(result);
}
return result;
}