mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed RenderWindow::setActive incorrectly trying to unbind an FBO during deactivation.
This commit is contained in:
parent
b012266258
commit
1dcad60878
@ -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 New Issue
Block a user