///////////////////////////////////////////////////////
| 83 | |
| 84 | //////////////////////////////////////////////////////////// |
| 85 | bool RenderWindow::setActive(bool active) |
| 86 | { |
| 87 | bool result = Window::setActive(active); |
| 88 | |
| 89 | // Update RenderTarget tracking |
| 90 | if (result) |
| 91 | result = RenderTarget::setActive(active); |
| 92 | |
| 93 | // If FBOs are available, make sure none are bound when we |
| 94 | // try to draw to the default framebuffer of the RenderWindow |
| 95 | if (active && result && priv::RenderTextureImplFBO::isAvailable()) |
| 96 | { |
| 97 | glCheck(GLEXT_glBindFramebuffer(GLEXT_GL_FRAMEBUFFER, m_defaultFrameBuffer)); |
| 98 | |
| 99 | return true; |
| 100 | } |
| 101 | |
| 102 | return result; |
| 103 | } |
| 104 | |
| 105 | |
| 106 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected