attempt to use fbo clear function

This commit is contained in:
itsmattkc
2019-12-10 21:32:21 +11:00
parent 91c7d8aa4d
commit f5d66436fa
8 changed files with 13 additions and 32 deletions
@@ -88,14 +88,14 @@ void OpenGLFramebuffer::Release()
context_->functions()->glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
}
void OpenGLFramebuffer::Attach(OpenGLTexturePtr texture)
void OpenGLFramebuffer::Attach(OpenGLTexturePtr texture, bool clear)
{
if (context_ == nullptr) {
return;
}
texture_ = texture;
AttachInternal(texture_->texture(), false);
AttachInternal(texture_->texture(), clear);
}
void OpenGLFramebuffer::Detach()