Clearing a cubempap texture attaching to a FBO

Hi everyone!

I’ve a question, to clear cubempap textures attached to an FBO, should I call the glClear function once or, for each faces of the cubemap ?

glClear using the GL_COLOR_BUFFER_BIT will clear all color buffers which are part of the active draw buffers state. If the affected buffers are layered, then all layers are cleared.

You can clear individual attachments with glClearBuffer.