From: sapier Date: Wed, 16 Jul 2014 14:37:41 +0000 (+0200) Subject: Fix flipped textures for drawtype "glasslike" X-Git-Tag: 0.4.11~353 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9a016a6294f289e1687b9a4655ea3f02f2208201;p=oweals%2Fminetest.git Fix flipped textures for drawtype "glasslike" --- 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