(f6b392c84) Fixed TextureLoader.FromStream always premultiplying the alpha channel regardless of the value of the preMultiplyAlpha argument
This commit is contained in:
@@ -81,7 +81,10 @@ namespace Barotrauma
|
||||
try
|
||||
{
|
||||
var texture = Texture2D.FromStream(_graphicsDevice, fileStream);
|
||||
PreMultiplyAlpha(ref texture);
|
||||
if (preMultiplyAlpha)
|
||||
{
|
||||
PreMultiplyAlpha(ref texture);
|
||||
}
|
||||
return texture;
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
Reference in New Issue
Block a user