diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-06-18 00:21:23 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-18 00:21:23 +0300 |
commit | 48790c0751cb43d45ba5efb33557de8b213d6111 (patch) | |
tree | f157a6ef08f9308fcdec5855dfbf33c150500b01 /src | |
parent | c57e5083e8e31e4eec356a7e777e3fcdcf680afa (diff) | |
download | minetest-48790c0751cb43d45ba5efb33557de8b213d6111.tar.gz minetest-48790c0751cb43d45ba5efb33557de8b213d6111.tar.bz2 minetest-48790c0751cb43d45ba5efb33557de8b213d6111.zip |
Fix random glitches in transparent animations
Diffstat (limited to 'src')
-rw-r--r-- | src/tile.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tile.cpp b/src/tile.cpp index 731f3712c..6dbe4c63a 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<u32> dim = frame_size; core::position2d<s32> pos_dst(0, 0); core::position2d<s32> pos_src(0, frame_index * frame_size.Y); |