summaryrefslogtreecommitdiff
path: root/src/render/Texture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/Texture.cpp')
-rw-r--r--src/render/Texture.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/Texture.cpp b/src/render/Texture.cpp
index b9797751..17c416c7 100644
--- a/src/render/Texture.cpp
+++ b/src/render/Texture.cpp
@@ -111,6 +111,9 @@ void CTexture::createFromDma(const Aquamarine::SDMABUFAttrs& attrs, void* image)
}
void CTexture::update(uint32_t drmFormat, uint8_t* pixels, uint32_t stride, const CRegion& damage) {
+ if (damage.empty())
+ return;
+
g_pHyprRenderer->makeEGLCurrent();
const auto format = NFormatUtils::getPixelFormatFromDRM(drmFormat);