renderer: always render snapshots as 8bit
fixes issues with transparent windows on 10b
This commit is contained in:
parent
25cf06f6cf
commit
60cd5b7a48
4 changed files with 16 additions and 7 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue