- Fixed: 3D hardware texture filling did not copy pixels with 0 alpha,

preserving whatever was underneath in the texture box previously.


SVN r976 (trunk)
This commit is contained in:
Randy Heit 2008-05-16 23:36:47 +00:00
commit 32557c4a28
4 changed files with 52 additions and 13 deletions

View file

@ -458,8 +458,9 @@ void FTexture::FillBuffer(BYTE *buff, int pitch, int height, FTextureFormat fmt)
case TEX_RGB:
{
FCopyInfo inf = {OP_OVERWRITE, };
FBitmap bmp(buff, pitch, pitch/4, height);
CopyTrueColorPixels(&bmp, 0, 0);
CopyTrueColorPixels(&bmp, 0, 0, 0, &inf);
break;
}