| 240 | } |
| 241 | |
| 242 | void FramebufferData::copyTextureBindDef() |
| 243 | { |
| 244 | GL_EXEC( glBindFramebuffer( GL_READ_FRAMEBUFFER, mainFramebuffer_ ) ); |
| 245 | GL_EXEC( glBindFramebuffer( GL_DRAW_FRAMEBUFFER, copyFramebuffer_ ) ); |
| 246 | auto copyBits = GL_COLOR_BUFFER_BIT; |
| 247 | if ( resDepthTexture_.valid() ) |
| 248 | copyBits |= GL_DEPTH_BUFFER_BIT; |
| 249 | GL_EXEC( glBlitFramebuffer( 0, 0, size_.x, size_.y, 0, 0, size_.x, size_.y, copyBits, GL_NEAREST ) ); |
| 250 | bindDefault(); |
| 251 | } |
| 252 | |
| 253 | void FramebufferData::del() |
| 254 | { |
no test coverage detected