- 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:
parent
c5936c9e9e
commit
6a5ab0edc0
4 changed files with 27 additions and 1 deletions
|
|
@ -477,3 +477,17 @@ void FBitmap::CopyPixelData(int originx, int originy, const BYTE * patch, int sr
|
|||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// Clear buffer
|
||||
//
|
||||
//===========================================================================
|
||||
void FBitmap::Zero()
|
||||
{
|
||||
BYTE *buffer = data;
|
||||
for (int y = 0; y < Height; ++y)
|
||||
{
|
||||
memset(buffer, 0, Width*4);
|
||||
buffer += Pitch;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue