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; }