3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-02-13 19:35:49 +00:00

renderer: always render snapshots as 8bit

fixes issues with transparent windows on 10b
This commit is contained in:
vaxerski
2025-05-09 22:16:21 +01:00
parent 25cf06f6cf
commit 60cd5b7a48
4 changed files with 16 additions and 7 deletions

View File

@ -12,6 +12,11 @@ bool CFramebuffer::alloc(int w, int h, uint32_t drmFormat) {
uint32_t glFormat = NFormatUtils::drmFormatToGL(drmFormat);
uint32_t glType = NFormatUtils::glFormatToType(glFormat);
if (drmFormat != m_drmFormat || m_size != Vector2D{w, h})
release();
m_drmFormat = drmFormat;
if (!m_tex) {
m_tex = makeShared<CTexture>();
m_tex->allocate();