1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 00:55:20 +02:00

Remove ClientMap::m_camera_mutex

All places that lock this mutex are only called by the main thread:
ClientMap::updateCamera(), ClientMap::updateDrawList(), ClientMap::renderMap(), ClientMap::renderPostFx().
This commit is contained in:
Kahrl
2016-02-07 04:24:24 +01:00
committed by paramat
parent 4adbd69a37
commit 180893e79d
2 changed files with 1 additions and 12 deletions

View File

@@ -89,7 +89,6 @@ public:
void updateCamera(v3f pos, v3f dir, f32 fov, v3s16 offset)
{
MutexAutoLock lock(m_camera_mutex);
m_camera_position = pos;
m_camera_direction = dir;
m_camera_fov = fov;
@@ -149,7 +148,6 @@ private:
v3f m_camera_direction;
f32 m_camera_fov;
v3s16 m_camera_offset;
Mutex m_camera_mutex;
std::map<v3s16, MapBlock*> m_drawlist;