I’m having an issue with my call to glClearNamedFramebufferfi. I have a frame buffer with 2 color attachments and a depth stencil attachment.
When making my call to glClearNamedFramebufferfi I recieve the following error message: “GL_INVALID_VALUE error generated. Invalid draw buffer.”
This doesn’t make sense to me seeing as the function does not take a draw buffer.
If I go back to the binding method I am able to call glClearBufferfi without any issue on the depth stencil. Additionally if I make the call to glClearNamedFramebufferfi with a bound framebuffer then it seems to work as well.
Has anyone come across this issue?
Also, thinking about this some more. I’m going to have to bind the frame buffer for use anyway. So I’m not really saving myself from any binding calls by using the DSA version of clear.