glBlitFramebuffer

glBlitFramebuffer is working when GLFW_OPENGL_PROFILE is to GLFW_OPENGL_COMPAT_PROFILE. But when it’s set to GLFW_OPENGL_CORE_PROFILE it does not and in render doc I get

glBlitFramebuffer(Framebuffer 186, No Resource)

When running in GLFW_OPENGL_COMPAT_PROFILE I get.

glBlitFramebuffer(Framebuffer 186, Backbuffer FBO)

Any help would be great.

I’d guess that the error is occurring earlier, when you either create or bind the framebuffers, rather than when you call glBlitFramebuffer.

Are you checking all FBOs for completeness before using them? (https://www.khronos.org/opengl/wiki/Framebuffer_Object#Framebuffer_Completeness)

I highly recommend using an OpenGL debug context to help figure this sort of thing out. It’s much easier and more informative than checking glGetError all over the place.

Thank you.The suggestion to use an OpenGL debug context was incredibly useful.