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:
parent
c75f85098c
commit
bb958a9e13
10 changed files with 17 additions and 12 deletions
|
|
@ -814,7 +814,7 @@ void CWLDataDeviceProtocol::renderDND(PHLMONITOR pMonitor, const Time::steady_tp
|
|||
CTexPassElement::SRenderData data;
|
||||
data.tex = m_dnd.dndSurface->m_current.texture;
|
||||
data.box = box;
|
||||
g_pHyprRenderer->m_renderPass.add(makeShared<CTexPassElement>(data));
|
||||
g_pHyprRenderer->m_renderPass.add(makeShared<CTexPassElement>(std::move(data)));
|
||||
|
||||
CBox damageBox = CBox{surfacePos, m_dnd.dndSurface->m_current.size}.expand(5);
|
||||
g_pHyprRenderer->damageBox(damageBox);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue