Skip to content

GL_DEPTH_STENCIL_ATTACHMENT not in GLES2/gl2.h #4832

Closed
@derofim

Description

@derofim

Im porting https://learnopengl.com/#!Advanced-OpenGL/Framebuffers tutorials to emscripten (sucessfully ported to "Framebuffers" for now).

Issue:
Add please
#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
to GLES2/gl2.h (or something like this)

Reason:
Code like
glFramebufferRenderbuffer(GL_FRAMEBUFFER, 0x821A, GL_RENDERBUFFER, rbo);
works fine.

khronos webgl ( https://www.khronos.org/registry/webgl/specs/1.0/#6 ) says to use renderbufferStorage + DEPTH_STENCIL and framebufferRenderbuffer + DEPTH_STENCIL_ATTACHMENT. So correct DEPTH_STENCIL_ATTACHMENT for me was 0x821A.

UPD from http://stackoverflow.com/a/28997686 :
Packed depth/stencil surfaces are not a standard part of OpenGL ES 2.0, but are added via this extension:
https://www.khronos.org/registry/gles/extensions/OES/OES_packed_depth_stencil.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions