Fixed RenderWindow::setActive incorrectly trying to unbind an FBO during deactivation.
This commit is contained in:
parent
f3d7468372
commit
6e84b2d97d
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue