diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2025-07-04 09:58:37 +0200 |
|---|---|---|
| committer | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-07-07 18:09:34 +0200 |
| commit | bb958a9e139d6ae90d45fe360287d33e229f971e (patch) | |
| tree | bbfe8a1ac10a83ce18291d9deaafa4f98bc9d355 /src/hyprerror/HyprError.cpp | |
| parent | c75f85098cfdd53744a30ea5dce24b3fd43bd9c1 (diff) | |
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.
Diffstat (limited to 'src/hyprerror/HyprError.cpp')
| -rw-r--r-- | src/hyprerror/HyprError.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hyprerror/HyprError.cpp b/src/hyprerror/HyprError.cpp index ad8a8782..be6a96b9 100644 --- a/src/hyprerror/HyprError.cpp +++ b/src/hyprerror/HyprError.cpp @@ -208,7 +208,7 @@ void CHyprError::draw() { data.box = monbox; data.a = m_fadeOpacity->value(); - g_pHyprRenderer->m_renderPass.add(makeShared<CTexPassElement>(data)); + g_pHyprRenderer->m_renderPass.add(makeShared<CTexPassElement>(std::move(data))); } void CHyprError::destroy() { |
