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:
@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user