- Fixed: The composer for complex multipatch textures did not clear the palette

buffer before filling it.


SVN r1737 (trunk)
This commit is contained in:
Christoph Oelckers 2009-07-25 09:11:15 +00:00
commit d26aeb8939
2 changed files with 6 additions and 1 deletions

View file

@ -523,6 +523,7 @@ void FBitmap::CopyPixelData(int originx, int originy, const BYTE * patch, int sr
BYTE *buffer = data + 4*originx + Pitch*originy;
PalEntry penew[256];
memset(penew, 0, sizeof(penew));
if (inf && inf->blend)
{
iCopyColors<cPalEntry, cBGRA, bCopy>((BYTE*)penew, (const BYTE*)palette, 256, 4, inf);