- Use a temporary bitmap when when copying true color pixels of a multipatch texture, the blend

operation is not BLEND_NONE, and it doesn't just redirect straight to a direct texture.

SVN r4151 (trunk)
This commit is contained in:
Randy Heit 2013-02-20 01:31:41 +00:00
parent e50de1e5fc
commit fef083f59c

View file

@ -558,7 +558,7 @@ int FMultiPatchTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int rota
return Parts[0].Texture->CopyTrueColorPixels(bmp, x, y, rotate, inf); return Parts[0].Texture->CopyTrueColorPixels(bmp, x, y, rotate, inf);
} }
if (rotate != 0 || (inf != NULL && inf->op != OP_OVERWRITE && inf->op != OP_COPY)) if (rotate != 0 || (inf != NULL && ((inf->op != OP_OVERWRITE && inf->op != OP_COPY) || inf->blend != BLEND_NONE)))
{ // We are doing some sort of fancy stuff to the destination bitmap, so composite to { // We are doing some sort of fancy stuff to the destination bitmap, so composite to
// a temporary bitmap, and copy that. // a temporary bitmap, and copy that.
FBitmap tbmp; FBitmap tbmp;