In chapter 12 section "Framebuffer and Renderbuffer Object", it says we can bind a texture image or a renderbuffer object to color attachment or depth attachment of fbo, but we only can attach renderbuffer object to stencil attachment of fbo, so is it illegal to bind a texture to stencil buffer of fbo? The parameter "attachment" of glFramebufferTexture2D() can be GL_STECNCIL_ATTACHMENT, and I have searched the ES 3.0 specification, the spec doesn't say we can't bind a texture to stencil buffer of fbo. So i get confused and looking for help here~
In chapter 12 section "Framebuffer and Renderbuffer Object", it says we can bind a texture image or a renderbuffer object to color attachment or depth attachment of fbo, but we only can attach renderbuffer object to stencil attachment of fbo, so is it illegal to bind a texture to stencil buffer of fbo? The parameter "attachment" of glFramebufferTexture2D() can be GL_STECNCIL_ATTACHMENT, and I have searched the ES 3.0 specification, the spec doesn't say we can't bind a texture to stencil buffer of fbo. So i get confused and looking for help here~