Don't rebind if there's nothing to rebind.
This commit is contained in:
parent
a665ec813e
commit
eda5d785fa
1 changed files with 3 additions and 1 deletions
|
@ -727,7 +727,9 @@ void FramebufferManager::DestroyFramebuf(VirtualFramebuffer *v) {
|
|||
}
|
||||
|
||||
void FramebufferManager::RebindFramebuffer() {
|
||||
fbo_bind_as_render_target(currentRenderVfb_->fbo);
|
||||
if (currentRenderVfb_) {
|
||||
fbo_bind_as_render_target(currentRenderVfb_->fbo);
|
||||
}
|
||||
}
|
||||
|
||||
void FramebufferManager::DoSetRenderFrameBuffer() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue