On Apr 2, 2010, at 12:01 PM, Kenneth Russell wrote:
I think it's clear that the OpenGL ES 2.0 spec makes it legal to create and FBO with color+depth or color+stencil. The question is about color+depth+stencil. As you've stated before it's not reasonable to let an author attach both a stencil and depth buffer and then try to "figure out" intent in the implementation a do the right thing. But that's why you added DEPTH_STENCIL_ATTACHMENT right? Section 6.2 makes it pretty clear how to do depth+stencil.
So I think we're covered as far as how to do it. It should also be clear that attempting to do depth+stencil on a platform that can't do it in any way will fail. It seems reasonable that this failure come either when attaching depth+stencil or in the CheckFramebufferStatus call. The only question is whether we fail at context creation time if the platform can't handle depth+stencil. I don't think it should, but I believe it is (at least in WebKit) today.