renderer/opengl: invalidate intermediate FBs post render, avoid stencil if possible (#12848)
This commit is contained in:
parent
107275238c
commit
6fce2d7288
3 changed files with 45 additions and 56 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue