I see lots of code around the web where the following is done:
But looking into the manual glDrawBuffer (in contrast to glReadBuffer and glDrawBuffers)
does NOT accept GL_COLOR_ATTACHMENTX as parameter.
So wondering what is the proper usage of glDrawBuffer and why does glReadBuffer
accept color attachments but glDrawBuffer does not?
I am also a bit confused how to setup things with glReadBuffer/glDrawBuffer/glDrawBuffers
when doing a glBlitFramebuffer on a framebuffer which has only a depth/depth-stencil texture
attached but no color attachment at all?
Help is really appreciated!