From: Perttu Ahola Date: Sun, 17 Jun 2012 21:21:23 +0000 (+0300) Subject: Fix random glitches in transparent animations X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=48790c0751cb43d45ba5efb33557de8b213d6111;p=zefram%2Fminetest%2Fminetest_engine.git Fix random glitches in transparent animations --- diff --git a/src/tile.cpp b/src/tile.cpp index 731f3712..6dbe4c63 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -1679,6 +1679,9 @@ bool generate_image(std::string part_of_name, video::IImage *& baseimg, return false; } + // Fill target image with transparency + img->fill(video::SColor(0,0,0,0)); + core::dimension2d dim = frame_size; core::position2d pos_dst(0, 0); core::position2d pos_src(0, frame_index * frame_size.Y);