From 1298d6c0206a964f4f5cb5a94b8463340c7dbbf4 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 28 Aug 2024 14:56:10 +0200 Subject: [PATCH] Fix VBO hint for transparent block parts --- src/client/mapblock_mesh.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client/mapblock_mesh.cpp b/src/client/mapblock_mesh.cpp index 04c50ad99..0638c34c9 100644 --- a/src/client/mapblock_mesh.cpp +++ b/src/client/mapblock_mesh.cpp @@ -783,12 +783,15 @@ MapBlockMesh::MapBlockMesh(Client *client, MeshMakeData *data, v3s16 camera_offs } if (mesh) { - // Use VBO for mesh (this just would set this for ever buffer) + // Use VBO for mesh (this just would set this for every buffer) mesh->setHardwareMappingHint(scene::EHM_STATIC); } } - //std::cout<<"added "<setHardwareMappingHint(scene::EHM_STREAM, scene::EBT_INDEX); + m_bsp_tree.buildTree(&m_transparent_triangles, data->side_length); // Check if animation is required for this mesh