OpenGL-Renderer
OpenGL-Renderer copied to clipboard
Problem with `GLFramebuffer::DrawBuffers`
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: