OpenGL and iOS: missing framebuffer attachment?

When using the OpenGL analysis of Instruments on the juce demo, I noticed several warnings, including the “missing framebuffer attachment” message.

I know that there was a bug in instruments that would display this message unexpectedly, but this is supposed to be fixed in Xcode 4.6 and I still get this message on all Juce apps using OpenGL.

Btw, there’s also a lot of warnings caused by glEnable(GL_TEXTURE_2D), I just commented them in Juce and it works fine.

Any idea what the message actually means?

According to Instruments, this warning is caused by a call to glDrawArrays; here’s the detail info about the warning:

So I guess the problem could come from glBindFrameBuffer or glFramebufferRenderbuffer.

Hmm… Every framebuffer that gets created by juce definitely has a texture bound to it, so that’s quite a puzzle. Maybe it’s failing to allocate a texture somewhere?

I’m on iPad 3 btw, so maybe it’s related to retina displays?