mirror of
https://github.com/minetest/minetest.git
synced 2024-12-28 08:57:30 +01:00
Fix random glitches in transparent animations
This commit is contained in:
parent
c57e5083e8
commit
48790c0751
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user