///////////////////////////////////////////////////////
| 165 | |
| 166 | //////////////////////////////////////////////////////////// |
| 167 | void RenderTexture::display() |
| 168 | { |
| 169 | if (!m_impl) |
| 170 | return; |
| 171 | |
| 172 | if (priv::RenderTextureImplFBO::isAvailable()) |
| 173 | { |
| 174 | // Perform a RenderTarget-only activation if we are using FBOs |
| 175 | if (!RenderTarget::setActive()) |
| 176 | return; |
| 177 | } |
| 178 | else |
| 179 | { |
| 180 | // Perform a full activation if we are not using FBOs |
| 181 | if (!setActive()) |
| 182 | return; |
| 183 | } |
| 184 | |
| 185 | // Update the target texture |
| 186 | m_impl->updateTexture(m_texture.m_texture); |
| 187 | m_texture.m_pixelsFlipped = true; |
| 188 | m_texture.invalidateMipmap(); |
| 189 | } |
| 190 | |
| 191 | |
| 192 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected