Merge pull request #5335 from Tyriar/tyriar/5255

webgl: Ignore alpha channel when allowTransparency is false
This commit is contained in:
Daniel Imms
2025-05-07 08:19:19 -07:00
committed by GitHub
+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;
}