OpenGL-Renderer icon indicating copy to clipboard operation
OpenGL-Renderer copied to clipboard

Problem with `GLFramebuffer::DrawBuffers`

Open vulxin opened this issue 4 years ago • 0 comments

I think there is some problem with this function:

void GLFramebuffer::DrawBuffers(const unsigned int attachments[]) const {
	glDrawBuffers(sizeof(attachments) / sizeof(attachments[0]), attachments);
}

The first parameter value passed to glDrawBuffers will always be 1.

m_hdrFBO.DrawBuffers(attachments);

Maybe because of this, I can't see the bloom effect :disappointed:

vulxin avatar Nov 04 '21 12:11 vulxin