mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-26 23:49:49 +01:00
opengl: cleanup framebuffer style
This commit is contained in:
parent
c5084f36c6
commit
84c4a14dad
1 changed files with 2 additions and 4 deletions
|
@ -63,13 +63,11 @@ void CFramebuffer::bind() {
|
|||
}
|
||||
|
||||
void CFramebuffer::release() {
|
||||
if (m_iFb != (uint32_t)-1 && m_iFb) {
|
||||
if (m_iFb != (uint32_t)-1 && m_iFb)
|
||||
glDeleteFramebuffers(1, &m_iFb);
|
||||
}
|
||||
|
||||
if (m_cTex.m_iTexID) {
|
||||
if (m_cTex.m_iTexID)
|
||||
glDeleteTextures(1, &m_cTex.m_iTexID);
|
||||
}
|
||||
|
||||
m_cTex.m_iTexID = 0;
|
||||
m_iFb = -1;
|
||||
|
|
Loading…
Reference in a new issue