mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix rendering glitches when far from the center of the map
This commit is contained in:
parent
8e15179e7d
commit
062de11b4c
17 changed files with 112 additions and 35 deletions
|
@ -179,7 +179,7 @@ void * MeshUpdateThread::Thread()
|
|||
|
||||
ScopeProfiler sp(g_profiler, "Client: Mesh making");
|
||||
|
||||
MapBlockMesh *mesh_new = new MapBlockMesh(q->data);
|
||||
MapBlockMesh *mesh_new = new MapBlockMesh(q->data, m_camera_offset);
|
||||
if(mesh_new->getMesh()->getMeshBufferCount() == 0)
|
||||
{
|
||||
delete mesh_new;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue