| 130 | } |
| 131 | |
| 132 | void GFXGLWindowTarget::makeActive() |
| 133 | { |
| 134 | //make the rendering context active on this window |
| 135 | _makeContextCurrent(); |
| 136 | |
| 137 | if(mBackBufferFBO) |
| 138 | { |
| 139 | glBindFramebuffer( GL_FRAMEBUFFER, mBackBufferFBO); |
| 140 | GFXGL->getOpenglCache()->setCacheBinded(GL_FRAMEBUFFER, mBackBufferFBO); |
| 141 | } |
| 142 | else |
| 143 | { |
| 144 | glGenFramebuffers(1, &mBackBufferFBO); |
| 145 | _setupAttachments(); |
| 146 | CHECK_FRAMEBUFFER_STATUS(); |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | bool GFXGLWindowTarget::present() |
| 151 | { |
no test coverage detected