mirror of
https://github.com/SFML/SFML.git
synced 2025-02-19 06:39:59 +08:00
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…
x
Reference in New Issue
Block a user