summaryrefslogtreecommitdiff
path: root/src/mesh.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-10-22 19:31:49 +0200
committersapier <Sapier at GMX dot net>2013-11-03 23:00:54 +0100
commit68bbdf1b2c1bc70f48d52694411cd7859d09c728 (patch)
tree18a755ef663b479bffea72faf75803b4821ff5f8 /src/mesh.cpp
parent5fbc39a76c7a1e985337ab1f35211de6c710e273 (diff)
downloadminetest-68bbdf1b2c1bc70f48d52694411cd7859d09c728.tar.gz
minetest-68bbdf1b2c1bc70f48d52694411cd7859d09c728.tar.bz2
minetest-68bbdf1b2c1bc70f48d52694411cd7859d09c728.zip
Fix invalid usage of texture->getSize() where actually texture->getOriginalSize() was meant
Diffstat (limited to 'src/mesh.cpp')
-rw-r--r--src/mesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesh.cpp b/src/mesh.cpp
index 5e5f9f863..3200d5fa6 100644
--- a/src/mesh.cpp
+++ b/src/mesh.cpp
@@ -260,7 +260,7 @@ scene::IAnimatedMesh* createExtrudedMesh(video::ITexture *texture,
video::IVideoDriver *driver, v3f scale)
{
scene::IAnimatedMesh *mesh = NULL;
- core::dimension2d<u32> size = texture->getSize();
+ core::dimension2d<u32> size = texture->getOriginalSize();
video::ECOLOR_FORMAT format = texture->getColorFormat();
if (format == video::ECF_A8R8G8B8)
{