From a5e422020ee2a3a6695581698b361222fb4ae0e9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 9 Apr 2010 20:03:18 +0000 Subject: [PATCH] - fixed: Two stage texture compositing did not clear the intermediate buffer before using it. SVN r2277 (trunk) --- src/textures/multipatchtexture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/textures/multipatchtexture.cpp b/src/textures/multipatchtexture.cpp index faaa5db6cb..0e4b9bc8f7 100644 --- a/src/textures/multipatchtexture.cpp +++ b/src/textures/multipatchtexture.cpp @@ -614,6 +614,7 @@ int FMultiPatchTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int rota FBitmap bmp1; if (bmp1.Create(Parts[i].Texture->GetWidth(), Parts[i].Texture->GetHeight())) { + bmp1.Zero(); Parts[i].Texture->CopyTrueColorPixels(&bmp1, 0, 0); bmp->CopyPixelDataRGB(x+Parts[i].OriginX, y+Parts[i].OriginY, bmp1.GetPixels(), bmp1.GetWidth(), bmp1.GetHeight(), 4, bmp1.GetPitch(), Parts[i].Rotate, CF_BGRA, inf);