Skip to content

Commit e29c236

Browse files
authored
Merge pull request #5335 from Tyriar/tyriar/5255
webgl: Ignore alpha channel when allowTransparency is false
2 parents baf12e7 + 2b38b65 commit e29c236

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)