Removed an unnecessary lambda capture in ViewController

This commit is contained in:
Leon Styhre 2023-08-07 00:12:45 +02:00
parent c50f139588
commit 0872201652

View file

@ -1173,7 +1173,7 @@ void ViewController::render(const glm::mat4& parentTrans)
if (mSystemListView == mCurrentView || (mSystemViewTransition && isCameraMoving())) if (mSystemListView == mCurrentView || (mSystemViewTransition && isCameraMoving()))
getSystemListView()->render(trans); getSystemListView()->render(trans);
auto gamelistRenderFunc = [this, trans, viewStart, viewEnd](auto it) { auto gamelistRenderFunc = [trans, viewStart, viewEnd](auto it) {
const glm::vec3 guiStart {it->second->getPosition()}; const glm::vec3 guiStart {it->second->getPosition()};
const glm::vec3 guiEnd {it->second->getPosition() + const glm::vec3 guiEnd {it->second->getPosition() +
glm::vec3 {it->second->getSize().x, it->second->getSize().y, 0.0f}}; glm::vec3 {it->second->getSize().x, it->second->getSize().y, 0.0f}};