From 2b38b653929ee18078930d78023e3864e758a272 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Wed, 7 May 2025 08:05:22 -0700 Subject: [PATCH] webgl: Ignore alpha channel when allowTransparency is false Fixes #5255 Part of microsoft/vscode#204663 --- addons/addon-webgl/src/TextureAtlas.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/addon-webgl/src/TextureAtlas.ts b/addons/addon-webgl/src/TextureAtlas.ts index a7d1138e..330c6275 100644 --- a/addons/addon-webgl/src/TextureAtlas.ts +++ b/addons/addon-webgl/src/TextureAtlas.ts @@ -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; }