Skip to content

Are framebuffer objects available? #24819

Answered by sbc100
Micovec asked this question in Q&A
Jul 30, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

It looks like you you using the old desktop GL headers. This means you are likely looks for GL desktop emulation as described here: https://emscripten.org/docs/porting/multimedia_and_graphics/OpenGL-support.html#emulation-of-older-desktop-opengl-api-features.

However desktop GL 1.0 doesn't appear to support glGenFramebuffers. That looks like it was added in GL 3 or 4 which emscripten does not support emulation of. However we do support emulating GLES2 which does have that function. For that you want to use the GLES2/gl2.h header.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sbc100
Comment options

@Micovec
Comment options

Answer selected by Micovec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants