Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Dec 1, 2023
1 parent 744076e commit 28eaf13
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/framework/graphics/drawpoolmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ void DrawPoolManager::draw()
drawPool(DrawPoolType::FOREGROUND_MAP);

{
auto mapWidget = get(DrawPoolType::FOREGROUND_MAP_WIDGETS);
std::scoped_lock l(map->getMutex(), mapWidget->getMutex());
drawPool(mapWidget);
std::scoped_lock l(map->getMutex());
drawPool(DrawPoolType::FOREGROUND_MAP_WIDGETS);
}

drawPool(DrawPoolType::FOREGROUND);
Expand Down

0 comments on commit 28eaf13

Please sign in to comment.