3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-02-11 02:05:31 +00:00

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

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;
}