[glutils] Fix FrameBufferBind unbind to no frame buffer
This commit is contained in:
parent
e1a1938762
commit
536f0ee8b7
@ -61,7 +61,6 @@ FrameBufferBind::~FrameBufferBind() noexcept {
|
|||||||
glViewport(0, 0, s_activeFb->width, s_activeFb->height);
|
glViewport(0, 0, s_activeFb->width, s_activeFb->height);
|
||||||
} else {
|
} else {
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||||
glViewport(0, 0, s_activeFb->width, s_activeFb->height);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user