From 146be1f0b6c058ad0e9fe0aa38e3c1f75a39823b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 1 Dec 2011 12:43:17 +0200 Subject: Fix texture atlas not being created correctly --- src/tile.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/tile.cpp') 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; jcopyToWithAlpha(atlas_img, + /*img2->copyToWithAlpha(atlas_img, pos_in_atlas + v2s32(j*dim.Width,0), core::rect(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(v2s32(0,0), dim), NULL); } -- cgit v1.2.3