diff options
| author | Lee Bousfield <ljbousfield@gmail.com> | 2025-03-22 11:13:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-22 17:13:44 +0100 |
| commit | 6384f4acf4e2988bcb35d3dfc5821f07867a34d0 (patch) | |
| tree | 2da8d2275cc4acc435906c7fa84956ae2b17ade6 /src/render/Texture.cpp | |
| parent | 4600043a498b015360a0f2b6f682ae82aff1b198 (diff) | |
core/compositor: Correctly track SHM buffer damage (#9678)
Diffstat (limited to 'src/render/Texture.cpp')
| -rw-r--r-- | src/render/Texture.cpp | 5 |
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)); |
