-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use glow
instead of gl_generator
for GL/GLES bindings
#321
base: main
Are you sure you want to change the base?
Conversation
glow
instead of gl_generator
for GL/GLES bindings
dce071e
to
3ae3cf7
Compare
Signed-off-by: sagudev <[email protected]>
Signed-off-by: sagudev <[email protected]>
Signed-off-by: sagudev <[email protected]>
So the problem is that: thread_local! {
pub static GL_FUNCTIONS: Gl = unsafe {Gl::from_loader_function(context::get_proc_address)};
} does not work because glow requires for context to be current, because it does some querying (version, extension). My idea is to simply replace all usages of |
Signed-off-by: sagudev <[email protected]>
See servo/servo#33539.
Note that this PR will expose glow types in surfmans public API.