Skip to content

Support rlGetActiveFramebuffer() on OpenGL ES 2.0. - #6115

Merged
raysan5 merged 1 commit into
raysan5:masterfrom
JoeStrout:rlgl-active-framebuffer-es2
Sep 2, 2026
Merged

Support rlGetActiveFramebuffer() on OpenGL ES 2.0.#6115
raysan5 merged 1 commit into
raysan5:masterfrom
JoeStrout:rlgl-active-framebuffer-es2

Conversation

@JoeStrout

Copy link
Copy Markdown
Contributor

Alias GL_DRAW_FRAMEBUFFER_BINDING to GL_FRAMEBUFFER_BINDING for ES 2.0, alongside the existing GL_READ_FRAMEBUFFER/GL_DRAW_FRAMEBUFFER aliases, and widen the guard to ES 2.0. The guard now matches rlEnableFramebuffer() and rlDisableFramebuffer().

(Tested on WebKit WebGL, OpenGL ES 2.0 (WebGL 1.0). Not tested on low-end hardware like RPi.)

Discussed briefly on Discord here.

Alias GL_DRAW_FRAMEBUFFER_BINDING to GL_FRAMEBUFFER_BINDING for ES 2.0,
alongside the existing GL_READ_FRAMEBUFFER/GL_DRAW_FRAMEBUFFER aliases, and
widen the guard to ES 2.0. The guard now matches rlEnableFramebuffer() and
rlDisableFramebuffer().
@raysan5
raysan5 merged commit 656d42c into raysan5:master Sep 2, 2026
16 checks passed
@raysan5

raysan5 commented Sep 2, 2026

Copy link
Copy Markdown
Owner

@JoeStrout thanks for the improvement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants