- 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
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue