I'm getting a weird GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT status on an FBO that contains only a depth attachment. This didn't happen on my OSX station, so I suspect Linux drivers to be at fault. Here is what apitrace thinks is going on.Texture & FBO creation:

Any GL errors during resource creation or when trying to attach the depth buffer?

04-30-2013, 05:51 AM

DmitryM

Quote:

Originally Posted by thokra

Any GL errors during resource creation or when trying to attach the depth buffer?

Good suggestion, thanks! There is indeed an InvalidOperation caused by line 1135 (glFramebufferTexture). I got so used to OSX's GL profiler thhat breaks on errors that I skipped the glGetError calls mostly during development...

The doc says InvalidOperation is issued when the texture is not compatible with the slot I'm binding it to. It's not the case for my code though.

For an experiment, I replaced glFramebufferTexture by glFramebufferTexture2D, and it went just right. This returns us to the point of a suspected bug in the driver withing support for glFramebufferTexture.