pass: overload TexPass constructor

overload it with a rvalue to allow us to move the data directly avoiding
an extra copy. because SRenderData is not trivially copyable.
This commit is contained in:
Tom Englund 2025-07-04 09:58:37 +02:00 committed by Vaxry
parent c75f85098c
commit bb958a9e13
10 changed files with 17 additions and 12 deletions

View file

@ -256,7 +256,7 @@ void CHyprGroupBarDecoration::draw(PHLMONITOR pMonitor, float const& a) {
data.tex = titleTex;
data.box = rect;
data.a = a;
g_pHyprRenderer->m_renderPass.add(makeShared<CTexPassElement>(data));
g_pHyprRenderer->m_renderPass.add(makeShared<CTexPassElement>(std::move(data)));
}
}