| 739 | } |
| 740 | |
| 741 | void vtkOpenGLFramebufferObject::AttachColorBuffer(unsigned int index) |
| 742 | { |
| 743 | if (this->FBOIndex != 0) |
| 744 | { |
| 745 | foIter i = this->ColorBuffers.find(index); |
| 746 | this->Context->GetState()->PushDrawFramebufferBinding(); |
| 747 | this->Context->GetState()->vtkBindFramebuffer(GL_DRAW_FRAMEBUFFER, this); |
| 748 | if (i != this->ColorBuffers.end()) |
| 749 | { |
| 750 | i->second->Attach(GL_DRAW_FRAMEBUFFER); |
| 751 | } |
| 752 | this->Context->GetState()->PopDrawFramebufferBinding(); |
| 753 | } |
| 754 | } |
| 755 | |
| 756 | void vtkOpenGLFramebufferObject::AttachDepthBuffer() |
| 757 | { |
no test coverage detected