aboutsummaryrefslogtreecommitdiff
path: root/src/tile.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-01 12:43:17 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-01 12:43:17 +0200
commit146be1f0b6c058ad0e9fe0aa38e3c1f75a39823b (patch)
tree6bea87191872dc7dee6f9c63ef5e0516195b4104 /src/tile.cpp
parent223a4f47417dfbb34560f87e1be3a6668464e384 (diff)
downloadhax-minetest-server-146be1f0b6c058ad0e9fe0aa38e3c1f75a39823b.tar.gz
hax-minetest-server-146be1f0b6c058ad0e9fe0aa38e3c1f75a39823b.zip
Fix texture atlas not being created correctly
Diffstat (limited to 'src/tile.cpp')
-rw-r--r--src/tile.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tile.cpp b/src/tile.cpp
index bf0e264c6..29c6b3e67 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -906,10 +906,14 @@ void TextureSource::buildMainAtlas(class IGameDef *gamedef)
for(u32 j=0; j<xwise_tiling; j++)
{
// Copy the copy to the atlas
- img2->copyToWithAlpha(atlas_img,
+ /*img2->copyToWithAlpha(atlas_img,
pos_in_atlas + v2s32(j*dim.Width,0),
core::rect<s32>(v2s32(0,0), dim),
video::SColor(255,255,255,255),
+ NULL);*/
+ img2->copyTo(atlas_img,
+ pos_in_atlas + v2s32(j*dim.Width,0),
+ core::rect<s32>(v2s32(0,0), dim),
NULL);
}