From fef083f59c769264d6f5a3b335ccc61c1ed4f2c1 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Wed, 20 Feb 2013 01:31:41 +0000 Subject: [PATCH] - 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) --- src/textures/multipatchtexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/multipatchtexture.cpp b/src/textures/multipatchtexture.cpp index 5d5f61062c..3083735a9e 100644 --- a/src/textures/multipatchtexture.cpp +++ b/src/textures/multipatchtexture.cpp @@ -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); } - 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 // a temporary bitmap, and copy that. FBitmap tbmp;