]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Fix mapblock geometry optimisation not working
authorROllerozxa <temporaryemail4meh+github@gmail.com>
Sat, 7 May 2022 17:41:11 +0000 (19:41 +0200)
committersfan5 <sfan5@live.de>
Sun, 8 May 2022 17:11:44 +0000 (19:11 +0200)
Caused by the depth sorting PR marking not only transparent nodes to be ignored but also opaque ones with the TILE_MATERIAL_BASIC material type

src/client/tile.h

index 88ff91f8edeea44b9b41bd10b03005c7f17174f4..e55a26e563f8e51cd0c2ad466d85b072a2480f82 100644 (file)
@@ -263,7 +263,6 @@ struct TileLayer
        bool isTransparent() const
        {
                switch (material_type) {
-               case TILE_MATERIAL_BASIC:
                case TILE_MATERIAL_ALPHA:
                case TILE_MATERIAL_LIQUID_TRANSPARENT:
                case TILE_MATERIAL_WAVING_LIQUID_TRANSPARENT: