summaryrefslogtreecommitdiff
path: root/src/render/pass/TextureMatteElement.cpp
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2025-05-05 23:44:49 +0200
committerGitHub <noreply@github.com>2025-05-05 23:44:49 +0200
commit997fefbc1113323ed2bf5d782bdafc0d17532647 (patch)
tree0368c8c41b6566492b5c68b03e3f23591fa28af8 /src/render/pass/TextureMatteElement.cpp
parentc7eb14109865aa6a057b6cd2e36312da80da9caa (diff)
render: refactor class member vars (#10292)
* render: refactor class member vars * render: fix clang format
Diffstat (limited to 'src/render/pass/TextureMatteElement.cpp')
-rw-r--r--src/render/pass/TextureMatteElement.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/pass/TextureMatteElement.cpp b/src/render/pass/TextureMatteElement.cpp
index 3d927357..2b5d4fab 100644
--- a/src/render/pass/TextureMatteElement.cpp
+++ b/src/render/pass/TextureMatteElement.cpp
@@ -1,19 +1,19 @@
#include "TextureMatteElement.hpp"
#include "../OpenGL.hpp"
-CTextureMatteElement::CTextureMatteElement(const CTextureMatteElement::STextureMatteData& data_) : data(data_) {
+CTextureMatteElement::CTextureMatteElement(const CTextureMatteElement::STextureMatteData& data_) : m_data(data_) {
;
}
void CTextureMatteElement::draw(const CRegion& damage) {
- if (data.disableTransformAndModify) {
+ if (m_data.disableTransformAndModify) {
g_pHyprOpenGL->setMonitorTransformEnabled(true);
g_pHyprOpenGL->setRenderModifEnabled(false);
- g_pHyprOpenGL->renderTextureMatte(data.tex, data.box, *data.fb);
+ g_pHyprOpenGL->renderTextureMatte(m_data.tex, m_data.box, *m_data.fb);
g_pHyprOpenGL->setRenderModifEnabled(true);
g_pHyprOpenGL->setMonitorTransformEnabled(false);
} else
- g_pHyprOpenGL->renderTextureMatte(data.tex, data.box, *data.fb);
+ g_pHyprOpenGL->renderTextureMatte(m_data.tex, m_data.box, *m_data.fb);
}
bool CTextureMatteElement::needsLiveBlur() {