gloperate icon indicating copy to clipboard operation
gloperate copied to clipboard

Unable to clear color buffers other than 0

Open j-o opened this issue 6 years ago • 1 comments

ClearStage uses RenderInterface::obtainFBO(size_t index, AbstractRenderTarget * renderTarget) to get an FBO for a specific attachment. This overload does not set draw buffers and neither does the clear stage. This works for color buffer 0, as the default value for the draw buffers array is [GL_COLOR_ATTACHMENT0, GL_NONE, GL_NONE, ...] (see https://computergraphics.stackexchange.com/a/3937), but fails for any additional color buffer.

Who should be responsible for seting the draw buffers?

j-o avatar Aug 21 '17 13:08 j-o