renderer/fb: dont forget to set m_drmFormat (#12833)

fab3370 accidently removed the setting of m_drmFormat, causing it to
think format changed on each alloc.
This commit is contained in:
Tom Englund 2026-01-03 16:48:43 +01:00 committed by GitHub
parent fab3370254
commit 17bc3b83db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,8 @@ bool CFramebuffer::alloc(int w, int h, uint32_t drmFormat) {
glBindTexture(GL_TEXTURE_2D, 0);
glBindFramebuffer(GL_FRAMEBUFFER, 0);
m_size = Vector2D(w, h);
m_drmFormat = drmFormat;
m_size = Vector2D(w, h);
return true;
}