- Fixed: FMultiPatchTexture::CopyTrueColorPixels() should clear the buffer

first before drawing into it if the copy op passed to it is OP_OVERWRITE.
  FTexture::FillBuffer() sets this to erase whatever texture might have been
  in the space it is going into.


SVN r1874 (trunk)
This commit is contained in:
Randy Heit 2009-09-25 02:27:48 +00:00
commit 6a5ab0edc0
4 changed files with 27 additions and 1 deletions

View file

@ -550,7 +550,12 @@ int FMultiPatchTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int w, i
if (w < 0 || w > Width) w = Width;
if (h < 0 || h > Height) h = Height;
for(int i=0;i<NumParts;i++)
if (inf->op == OP_OVERWRITE)
{
bmp->Zero();
}
for(int i = 0; i < NumParts; i++)
{
int ret = -1;