File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -321,11 +321,12 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
321
321
camera_direction, camera_fov, 100000 * BS, &d))
322
322
continue ;
323
323
324
+ MapBlockMesh *mapBlockMesh = block->mesh ;
325
+ if (!mapBlockMesh)
326
+ continue ;
327
+
324
328
// Mesh animation
325
329
if (pass == scene::ESNRP_SOLID) {
326
- // MutexAutoLock lock(block->mesh_mutex);
327
- MapBlockMesh *mapBlockMesh = block->mesh ;
328
- assert (mapBlockMesh);
329
330
// Pretty random but this should work somewhat nicely
330
331
bool faraway = d >= BS * 50 ;
331
332
if (mapBlockMesh->isAnimationForced () || !faraway ||
@@ -344,11 +345,6 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
344
345
Get the meshbuffers of the block
345
346
*/
346
347
{
347
- // MutexAutoLock lock(block->mesh_mutex);
348
-
349
- MapBlockMesh *mapBlockMesh = block->mesh ;
350
- assert (mapBlockMesh);
351
-
352
348
for (int layer = 0 ; layer < MAX_TILE_LAYERS; layer++) {
353
349
scene::IMesh *mesh = mapBlockMesh->getMesh (layer);
354
350
assert (mesh);
You can’t perform that action at this time.
0 commit comments