KhronosGroup/WebGL

DEPTH_STENCIL_ATTACHMENT: should different images of the same object return the object as gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME query

kkinnunen-apple opened this issue · 1 comments

DEPTH_STENCIL_ATTACHMENT: should different images of the same object return the object as gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME query

Should it be

shouldEvaluateTo("gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.DEPTH_STENCIL_ATTACHMENT, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME)", texDepthStencilMany);

or should it be

shouldEvaluateTo("gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.DEPTH_STENCIL_ATTACHMENT, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME)", null);

The GLES3 spec says:

If attachment is DEPTH_STENCIL_ATTACHMENT, the same object must be bound to both the depth and stencil attachment points of the framebuffer object, and information about that object is returned.

The "the same object" would imply the texture object (which is the same) but OTOH it is kind of strange that this works but the framebuffer is unsupported.