| 929 | } |
| 930 | |
| 931 | void vtkOpenGLFramebufferObject::RemoveColorAttachment(unsigned int index) |
| 932 | { |
| 933 | foIter i = this->ColorBuffers.find(index); |
| 934 | |
| 935 | if (i != this->ColorBuffers.end()) |
| 936 | { |
| 937 | if (this->FBOIndex != 0) |
| 938 | { |
| 939 | this->Context->GetState()->PushDrawFramebufferBinding(); |
| 940 | this->Context->GetState()->vtkBindFramebuffer(GL_DRAW_FRAMEBUFFER, this); |
| 941 | i->second->Detach(GL_DRAW_FRAMEBUFFER); |
| 942 | this->Context->GetState()->PopDrawFramebufferBinding(); |
| 943 | } |
| 944 | delete i->second; |
| 945 | i->second = nullptr; |
| 946 | this->ColorBuffers.erase(i); |
| 947 | } |
| 948 | } |
| 949 | |
| 950 | //------------------------------------------------------------------------------ |
| 951 | // Description: |
no test coverage detected