When I try to delete a framebuffer because it is no longer used the application crashes.
The FB is complete and has been used successfully.
There are no OpenGL errors.
It has one color attachment as RGBA.
DEPTH-only attachments (as for shadow maps) don’t crash
It crashes saying: "unhandled exception in 0x0000000 viewer.exe: 0xC000005.
This could happen for many reasons…a piece of code might help.
Do you return correctly to the default framebuffer, calling for example glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0) and setting the draw buffer to GL_BACK, if it is modified?
Any way it was supposed that if you delete the current FB, it automatically returns you to the main FB.
It’s hard to put some pice of code because it’s all scattered over my engine, if you want some piece of code in particular, please ask for it and I’ll post it.