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:
parent
fab3370254
commit
17bc3b83db
1 changed files with 2 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ bool CFramebuffer::alloc(int w, int h, uint32_t drmFormat) {
|
||||||
glBindTexture(GL_TEXTURE_2D, 0);
|
glBindTexture(GL_TEXTURE_2D, 0);
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||||
|
|
||||||
m_size = Vector2D(w, h);
|
m_drmFormat = drmFormat;
|
||||||
|
m_size = Vector2D(w, h);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue