| 162 | } |
| 163 | |
| 164 | void FramebufferObject::Unattach(GLenum attachment) |
| 165 | { |
| 166 | _GuardedBind(); |
| 167 | GLenum type = GetAttachedType(attachment); |
| 168 | |
| 169 | switch (type) { |
| 170 | case GL_NONE: |
| 171 | break; |
| 172 | |
| 173 | case GL_RENDERBUFFER_EXT: |
| 174 | AttachRenderBuffer(0, attachment); |
| 175 | break; |
| 176 | |
| 177 | case GL_TEXTURE: |
| 178 | AttachTexture(GL_TEXTURE_2D, 0, attachment); |
| 179 | break; |
| 180 | |
| 181 | default: |
| 182 | cerr << "FramebufferObject::unbind_attachment ERROR: Unknown attached " |
| 183 | "resource type\n"; |
| 184 | } |
| 185 | |
| 186 | _GuardedUnbind(); |
| 187 | } |
| 188 | |
| 189 | void FramebufferObject::UnattachAll() |
| 190 | { |
nothing calls this directly
no outgoing calls
no test coverage detected