3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-03-02 13:24:46 +00:00

renderer/opengl: invalidate intermediate FBs post render, avoid stencil if possible (#12848)

This commit is contained in:
Vaxry
2026-01-05 22:37:54 +01:00
committed by GitHub
parent 107275238c
commit 6fce2d7288
3 changed files with 45 additions and 56 deletions

View File

@ -123,3 +123,10 @@ GLuint CFramebuffer::getFBID() {
SP<CTexture> CFramebuffer::getStencilTex() {
return m_stencilTex;
}
void CFramebuffer::invalidate(const std::vector<GLenum>& attachments) {
if (!isAllocated())
return;
glInvalidateFramebuffer(GL_FRAMEBUFFER, attachments.size(), attachments.data());
}