Again, thank you for your help, you’re the master
Anyway, I implemented the solution below that works really fine, but as i’m a beginner in openGL, can you confirme me I do this the right way ? do I have to add the glReadBuffer(GL_BACK); at the end ? (I checked the GL_READ_BUFFER / GL_DRAW_BUFFER state after binding to the previous FBO and everything seems OK, but i just wanted you advise).
GLint previousFboId = 0;
glBlitFramebuffer(0, 0, settings.width, settings.height, 0, 0, settings.width, settings.height, GL_COLOR_BUFFER_BIT, GL_NEAREST);
glBlitFramebuffer(0, 0, settings.width, settings.height, 0, 0, settings.width, settings.height, GL_DEPTH_BUFFER_BIT, GL_NEAREST);