Fixed alpha channel issue with textures
This commit is contained in:
parent
38aba81dcc
commit
e72a032a11
2 changed files with 9 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue