grovesNL / glow

GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code
Apache License 2.0
1.2k stars 130 forks source link

Add `create_framebuffer_from_gl_name` for interop with `surfman` and similar crates. #202

Closed iamralpht closed 2 years ago

iamralpht commented 2 years ago

surfman supports multicontext GL on some platforms by creating a texture shared between contexts, which one context uses as an FBO, and the other context samples from. This change to glow makes it easier to use the FBO in a context that is also doing most of its rendering using glow.

bors[bot] commented 2 years ago

Build succeeded:

iamralpht commented 2 years ago

Awesome, thanks for merging @grovesNL !