| 416 | } |
| 417 | |
| 418 | void ViewportGL::PickTextureFrameBuffer::bind( bool read ) |
| 419 | { |
| 420 | if ( framebuffer_ == 0 ) |
| 421 | return; |
| 422 | if ( !read ) |
| 423 | { |
| 424 | GL_EXEC( glBindFramebuffer( GL_FRAMEBUFFER, framebuffer_ ) ); |
| 425 | } |
| 426 | else |
| 427 | { |
| 428 | GL_EXEC( glBindFramebuffer( GL_READ_FRAMEBUFFER, framebuffer_ ) ); |
| 429 | } |
| 430 | } |
| 431 | |
| 432 | } |