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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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());
}