-GLenum get_gl_attachment(FrameAttachment fa)
-{
- if(get_attach_point(fa)==get_attach_point(DEPTH_ATTACHMENT))
- return GL_DEPTH_ATTACHMENT;
- else if(get_attach_point(fa)==get_attach_point(STENCIL_ATTACHMENT))
- return GL_STENCIL_ATTACHMENT;
- else
- return GL_COLOR_ATTACHMENT0+get_attach_point(fa);
-}
-