Merge pull request #5335 from Tyriar/tyriar/5255
webgl: Ignore alpha channel when allowTransparency is false
This commit is contained in:
@@ -306,6 +306,11 @@ export class TextureAtlas implements ITextureAtlas {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ignore alpha channel when allowTransparency is false
|
||||||
|
if (!this._config.allowTransparency) {
|
||||||
|
result = color.opaque(result);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user