aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-07-16 16:37:41 +0200
committersapier <Sapier at GMX dot net>2014-07-16 16:37:41 +0200
commit9a016a6294f289e1687b9a4655ea3f02f2208201 (patch)
treefa86e42ef6d3a612a43574cac0e3a1c2900f5b70
parent65b8b524c02df853163fc1284a00a684a046d67c (diff)
downloadminetest-9a016a6294f289e1687b9a4655ea3f02f2208201.tar.gz
minetest-9a016a6294f289e1687b9a4655ea3f02f2208201.tar.bz2
minetest-9a016a6294f289e1687b9a4655ea3f02f2208201.zip
Fix flipped textures for drawtype "glasslike"
-rw-r--r--src/content_mapblock.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp
index 9078488c2..9cdf426be 100644
--- a/src/content_mapblock.cpp
+++ b/src/content_mapblock.cpp
@@ -710,10 +710,10 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
// The face at Z+
video::S3DVertex vertices[4] = {
- video::S3DVertex(-BS/2,-BS/2,BS/2, 0,0,0, c, 0,1),
- video::S3DVertex(BS/2,-BS/2,BS/2, 0,0,0, c, 1,1),
- video::S3DVertex(BS/2,BS/2,BS/2, 0,0,0, c, 1,0),
- video::S3DVertex(-BS/2,BS/2,BS/2, 0,0,0, c, 0,0),
+ video::S3DVertex(-BS/2,-BS/2,BS/2, 0,0,0, c, 1,1),
+ video::S3DVertex(BS/2,-BS/2,BS/2, 0,0,0, c, 0,1),
+ video::S3DVertex(BS/2,BS/2,BS/2, 0,0,0, c, 0,0),
+ video::S3DVertex(-BS/2,BS/2,BS/2, 0,0,0, c, 1,0),
};
// Rotations in the g_6dirs format