Fixed alpha channel issue with textures

This commit is contained in:
Magnus Norddahl 2016-06-19 23:12:10 +02:00
commit e72a032a11
2 changed files with 9 additions and 3 deletions

View file

@ -203,7 +203,7 @@ const uint32_t *FTexture::GetPixelsBgra()
PixelsBgra.resize(Width * Height);
for (int i = 0; i < Width * Height; i++)
{
PixelsBgra[i] = GPalette.BaseColors[indices[i]].d;
PixelsBgra[i] = 0xff000000 | GPalette.BaseColors[indices[i]].d;
}
}
return PixelsBgra.data();