Fixed RenderWindow::setActive incorrectly trying to unbind an FBO during deactivation.

This commit is contained in:
binary1248 2018-05-20 23:42:20 +02:00 committed by Lukas Dürrenberger
parent b012266258
commit 1dcad60878

View File

@ -81,7 +81,7 @@ bool RenderWindow::setActive(bool active)
// If FBOs are available, make sure none are bound when we // If FBOs are available, make sure none are bound when we
// try to draw to the default framebuffer of the RenderWindow // try to draw to the default framebuffer of the RenderWindow
if (result && priv::RenderTextureImplFBO::isAvailable()) if (active && result && priv::RenderTextureImplFBO::isAvailable())
{ {
priv::RenderTextureImplFBO::unbind(); priv::RenderTextureImplFBO::unbind();