summaryrefslogtreecommitdiff
path: root/src/render/Texture.cpp
diff options
context:
space:
mode:
authorLee Bousfield <ljbousfield@gmail.com>2025-03-22 11:13:44 -0500
committerGitHub <noreply@github.com>2025-03-22 17:13:44 +0100
commit6384f4acf4e2988bcb35d3dfc5821f07867a34d0 (patch)
tree2da8d2275cc4acc435906c7fa84956ae2b17ade6 /src/render/Texture.cpp
parent4600043a498b015360a0f2b6f682ae82aff1b198 (diff)
core/compositor: Correctly track SHM buffer damage (#9678)
Diffstat (limited to 'src/render/Texture.cpp')
-rw-r--r--src/render/Texture.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/render/Texture.cpp b/src/render/Texture.cpp
index 95efb15e..fd5b682e 100644
--- a/src/render/Texture.cpp
+++ b/src/render/Texture.cpp
@@ -64,8 +64,9 @@ void CTexture::createFromShm(uint32_t drmFormat, uint8_t* pixels, uint32_t strid
const auto format = NFormatUtils::getPixelFormatFromDRM(drmFormat);
ASSERT(format);
- m_iType = format->withAlpha ? TEXTURE_RGBA : TEXTURE_RGBX;
- m_vSize = size_;
+ m_iType = format->withAlpha ? TEXTURE_RGBA : TEXTURE_RGBX;
+ m_vSize = size_;
+ m_isSynchronous = true;
allocate();
GLCALL(glBindTexture(GL_TEXTURE_2D, m_iTexID));